Posted on: 3/7/2011 10:05:49 PM | Views : 228

Hi..I have a navigation on my site that retrieves it's links from xml file..Does asp do this everytime a link is clicked on my site..I'm using a master page and the navigation code within the master page is below..So is the xml file opened and read each and every time? any way to cache it or something.below is my code
 
 
<asp:XmlDataSource ID="XmlDataSourceNavMenu2" runat="server" DataFile="~/Xml/NavigationMenuGroup2.xml" XPath="MENU/ITEM"> </asp:XmlDataSource> <ul> <asp:Repeater ID="RepeaterNavMenu2" runat="server" DataSourceID="XmlDataSourceNavMenu2" > <ItemTemplate> <li <%# CheckPage(XPATH("BREADCRUMB")) %>><a href="<%#XPATH("LINK") %>"><%# XPath("DISPLAY")%></a></li> </ItemTemplate> </asp:Repeater>  
 < ...

Go to the complete details ...