|
RSS feed is just a XML file. You can't implement paging there directly.
You can implement paging in your viewer.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
hi,
Thanks for your response.
How to implement paging in the viewer?Can u help me out plz.
Thanks and regards
Anu
I am using Outlook express to read all the mails in the inbox.How can i know the connecting url of my outlook express.
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
Search google. There are many many tutorials available on the subject. Or think a little and try to figure it out yourself.
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
i want to create Date Time Picker for web application.Please help me..
It is already there for a Windows Application.
Thanks in advance,
Libran
|
|
|
|
|
do u want to create one or use one?
cause there r many date/time pickers ready for use so y to reinvent the wheel?
Best Regards
3ala2
|
|
|
|
|
i want to create for my application. please help me.
|
|
|
|
|
|
Thanks for reply but Sorry, it doen't give me required help.
|
|
|
|
|
|
Sorry, it doen't give me required help.
|
|
|
|
|
Geez mate, download any opensource date picker available on net (there are thousands of them and check how does it work. Or what do you expect from us? To paste hundred lines of code here for you? Why, if it was written many times by many people and is available, just search google!
Or what other help are you expecting from us?
Pilo
|
|
|
|
|
I am trying to bind the checked status of items in a checked list box using object data source. but this does not seem to be straight forward.
Most of the methods that i found on the net either created a new control or used the same way that was used in asp.net 1.1 am i missing somthing.
Thanks and Regards
Rahul
|
|
|
|
|
Does that mean you're using .NET 2.0?
I know for a Checkbox List that I just traverse the list and compare the key value to the text value in my datasource to determine if it should be checked or not, but that is in .NET 1.1.
Cleako
|
|
|
|
|
I have been using object data source in asp.net 2.0 for a couple of months now and this way of binding data for simple applications is reaaly cool but as things get a little comlicated like
1.Binding a form view to a Grid view's selection with composit primary keys 2.Binding to a checked list box where checked status is data driven
people start pointing that it is similar to .net 1.1.
Could some one pls point me to How to use the Object data source for binding data in the above scenarios.
Thanks & Regards
Rahul
|
|
|
|
|
How to insert a check box into a treeview
priyanka
|
|
|
|
|
<asp:treeview id="TreeView1" runat="server" datasourceid="XmlDataSource1" showcheckboxes="all">
-------ShowCheckBoxes="all"------
Priyanka
|
|
|
|
|
I have 2 aspx pages, here called A and B. page A have many record and have an APPLY button. When user select one record from page A and click the APPLY button, page B will prompt up and display the information about the selected record. My situation is , sometime when user select the different record and click APPLY button, page B will prompt up and show previous record rather then the current selected record, while i refresh the page B then only will show the current record, how to solve this problem ? my friend said is because the browser lock the cahce, but how to disable it ?
Best regards,
Chee ken
|
|
|
|
|
hi if u want to remove current page cache thn try for the following code.
<br />
<br />
Response.Buffer = true;<br />
Response.ExpiresAbsolute = DateTime.Now.AddDays(-1d);<br />
Response.Expires = -1500;<br />
Response.CacheControl = "no-cache";<br />
<br />
<br />
<br />
<br />
u can also use the server.execute(b.aspx)
try for both. hope tht'll solve ur problem
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
I try already, still cannot, is it this code is for restrict user click the back button for the browser?
Best regards,
Chee ken
|
|
|
|
|
It is difficult to say, but I don't think it is a cache problem. How do you pass values from one page to another? Can you paste a code here (redirection and value storing/passing from page A and value reading from page B)?
Pilo
|
|
|
|
|
Hello,
Could someone tell me how to convert a XML file into another XML file using a XSL file with a parameter? I created the code to do it, and it seems ok, but it is not working.
Could somebody, please, help me out? I am on this for days.
My code is as follows:
Dim webSiteMap As XmlDocument = New XmlDocument
webSiteMap.Load(HttpContext.Current.Server.MapPath("~/INPUT.XML"))
Dim googleXsl As XslCompiledTransform = New XslCompiledTransform
googleXsl.Load(HttpContext.Current.Server.MapPath("~/CONVERT.XSL"))
Dim googleXslArguments As XsltArgumentList = New XsltArgumentList
googleXslArguments.AddParam("Domain", "", "http://www.domain.com")
Dim webSiteMapStream As MemoryStream = New MemoryStream
googleXsl.Transform(webSiteMap, googleXslArguments, webSiteMapStream)
context.Response.Clear()
context.Response.ContentType = "text/xml; charset=utf-8"
context.Response.Write(Encoding.UTF8.GetString(webSiteMapStream.GetBuffer))
context.Response.End()
Thanks,
Miguel
|
|
|
|
|
shapper wrote: but it is not working.
You'll have to provide more detail than this. Is an exception being thrown? Is the transform not happening? Is it happening but you don't get the expected results?
only two letters away from being an asset
|
|
|
|
|
Han,
C# for me is fine. I will do any conversion to VB.Net.
Anyway, I tried your suggestion and it still doesn't work.
Anyway, I am posting my XSL and XML files as well the new version of my VB.NET (I also post the conversion to C# using the VB.NET to C# converter available in http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx)
The error I am getting is:
XML Parsing Error: not well-formed
Location: http://localhost:1132/GaragemRamos%202006a/Google
Line Number 2, Column 62:<urlset xmlns="http://www.google.com/schemas/sitemap/0.84" />
Thanks,
Miguel
--------- XSL CODE ---------
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.google.com/schemas/sitemap/0.84"
xmlns:dk="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="WebSiteUrl"/>
<xsl:template match="dk:*"/>
<xsl:template match="@*|text()|comment()"/>
<xsl:template match="/">
<xsl:element name="urlset">
<xsl:apply-templates select="//dk:siteMapNode[@google='true']"/>
</xsl:element>
</xsl:template>
<xsl:template match="dk:siteMapNode">
<xsl:element name="url">
<xsl:element name="loc">
<xsl:value-of select="$WebSiteUrl" />
<xsl:value-of select="substring(@url, 3)"/>
</xsl:element>
<xsl:element name="lastmod">
<xsl:value-of select="@lastmod"/>
</xsl:element>
<xsl:element name="changefreq">
<xsl:value-of select="@changefreq"/>
</xsl:element>
<xsl:element name="priority">
<xsl:value-of select="@priority"/>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
--------- VB.NET Code ---------
' Create ASP.NET web site map
Dim webSiteMap As XmlDocument = New XmlDocument
' Load ASP.NET's site map
webSiteMap.Load(HttpContext.Current.Server.MapPath("~/Web.sitemap"))
' Create google xsl document
Dim googleXsl As XslCompiledTransform = New XslCompiledTransform
' Load google xml document
googleXsl.Load(HttpContext.Current.Server.MapPath("~/SiteMap.xsl"))
' Create xsl arguments list
Dim googleXslArguments As XsltArgumentList = New XsltArgumentList
googleXslArguments.AddParam("WebSiteUrl", "", "http://www.mydomain.com")
' Create the ASP.NET's site map memory stream
Dim googleSiteMapStream As MemoryStream = New MemoryStream
' Transform Asp.Net's site map to Google's site map and add it to stream
googleXsl.Transform(CType(webSiteMap, XPath.IXPathNavigable), googleXslArguments, googleSiteMapStream)
' Flush google site map stream
googleSiteMapStream.Flush()
' Set google site map stream position to 0
googleSiteMapStream.Position = 0
' Output Google sitemap
context.Response.Clear()
context.Response.ContentType = "text/xml; charset=utf-8"
context.Response.Write(Encoding.UTF8.GetString(googleSiteMapStream.GetBuffer))
context.Response.End()
--------- C# CODE ---------
XmlDocument webSiteMap = new XmlDocument();
webSiteMap.Load(HttpContext.Current.Server.MapPath("~/Web.sitemap"));
XslCompiledTransform googleXsl = new XslCompiledTransform();
XsltArgumentList googleXslArguments = new XsltArgumentList();
googleXslArguments.AddParam("WebSiteUrl", "", "http://www.mydomain.com");
MemoryStream googleSiteMapStream = new MemoryStream();
googleXsl.Transform(((XPath.IXPathNavigable)(webSiteMap)), googleXslArguments, googleSiteMapStream);
googleSiteMapStream.Flush();
googleSiteMapStream.Position = 0;
context.Response.Clear();
context.Response.ContentType = "text/xml; charset=utf-8";
context.Response.Write(Encoding.UTF8.GetString(googleSiteMapStream.GetBuffer));
context.Response.End();
--------- XML File (Web.sitemap) ---------
<?xml version="1.0" encoding="utf-8" ?>
<siteMap
xmlns="http://schemas.microsoft.com/ASPNet/SiteMap-File-1.0" >
<siteMapNode>
<siteMapNode
url="~/Default.aspx"
title="Home"
description="Desc1"
changefreq="daily"
lastmod="2006-11-01T20:25:42+01:00"
priority="1"
google="true" />
<siteMapNode
url="~/Company.aspx"
title="Company"
description="Desc2"
changefreq="daily"
lastmod="2006-11-01T20:25:42+01:00"
priority="0.2"
google="true" />
<siteMapNode
url="~/Contacts.aspx"
title="Contacts"
description="Contacts"
changefreq="daily"
lastmod="2006-11-01T20:25:42+01:00"
priority="0.4"
google="false" />
</siteMapNode>
</siteMap>
Well, that is all I think. I hope someone can help me out.
Thank You Very Much,
Miguel
|
|
|
|
|
Please,
Could someone help me out?
I just posted my entire code. I still wasn't able to solve my problem
Thank You Very Much,
Miguel
|
|
|
|
|
Hi,
I've created the following menu:
<asp:Menu id="Menu1" runat="server" Orientation="vertical" OnMenuItemClick="Menu1_MenuItemClick" DisappearAfter="0" StaticEnableDefaultPopOutImage="False" BorderWidth="0px" BorderStyle="None">
<DynamicHoverStyle BackColor="#6B96B5" />
<Items>
<asp:MenuItem Text="· HOME" NavigateUrl="~/index.aspx" Value="· HOME" />
<asp:MenuItem Text="· REFERENCE CENTER" Value="· REFERENCE CENTER">
<asp:MenuItem Text="· CUSTOMER TOOLS" Value="· CUSTOMER TOOLS" /> </Items>
<LevelMenuItemStyles>
<asp:MenuItemStyle BackColor="#084C82"
ItemSpacing="0px"
HorizontalPadding="6px"
VerticalPadding="4px"
BorderColor="Black"
BorderWidth="0px"
Font-Size="11px"
Font-Bold="True"
Font-Italic="False"
Font-Names="Verdana"
ForeColor="White" Font-Underline="False" />
<asp:MenuItemStyle BackColor="#084C82"
ItemSpacing="0px"
HorizontalPadding="6px"
VerticalPadding="4px"
BorderColor="Black"
BorderWidth="1px"
Font-Size="11px"
Font-Bold="True"
Font-Italic="False"
Font-Names="Verdana"
ForeColor="White" Font-Underline="False" />
</LevelMenuItemStyles>
<DynamicItemTemplate>
<%# Eval("Text") %>
</DynamicItemTemplate>
<StaticHoverStyle BackColor="#6B96B5" />
</asp:Menu>
But there's still ItemSpacing between the menu items. When I set the ItemSpacing to 10 in the MenuItemStyle above, it goes to 10 pixels, but it doesn't drop all the way down to 0 when I set it to that.
If I change the orientation to horizontal, it works correctly.
Any ideas?
Thanks.
|
|
|
|