In Master page i dont want menus to load each and every time i navigate with the menu

Posted by Anu_dgr8 under Regular Expressions on 10/12/2010 | Points: 10 | Views : 4157 | Status : [Member] | Replies : 4
in master page i have menus
menus load each and every time i navigate with the menu .
So every time master page gets refreshed and menus get loaded each time ,which makes the system slow



is there any possible way to stop loading menu each time ??

Thanks in advance

Thanks and Regards,
Hoosha Boosha



Responses

Posted by: Anu_dgr8 on: 10/12/2010 [Member] Starter | Points: 25

Up
0
Down
My code:

 <div class="nav2">

<asp:Menu ID="Menu1" CssClass="setmenu" StaticSelectedStyle-BorderStyle="NotSet"
Font-Underline="False" Font-Strikeout="False" EnableTheming="True" DynamicVerticalOffset="0"
runat="server" Orientation="Horizontal" StaticEnableDefaultPopOutImage="false"
DynamicSelectedStyle-BorderWidth="1px" DynamicEnableDefaultPopOutImage="True"
MaximumDynamicDisplayLevels="8" DataSourceID="xds">
<StaticMenuItemStyle CssClass="menulevel1" />
<StaticHoverStyle CssClass="menuhover1" />
<DynamicMenuItemStyle CssClass="MS1" />
<DynamicHoverStyle CssClass="MSH1" />
<DataBindings>
<asp:MenuItemBinding DataMember="MenuItem" NavigateUrlField="NavigateUrl" TextField="Text" />
</DataBindings>
<StaticItemTemplate>
<%# Eval("Text") %>
</StaticItemTemplate>
</asp:Menu>
<asp:XmlDataSource ID="xds" runat="server" TransformFile="~/XML/TransformXSLT.xsl"
XPath="MenuItems/MenuItem" CacheExpirationPolicy="Sliding" CacheDuration="60">
</asp:XmlDataSource>
</div>


Thanks and Regards,
Hoosha Boosha

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 10/12/2010 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
Good Day Anu_dgr8

Are you using a thirdparty menu or the normal asp.net menu. If i remember correctly the items of the menu will have a property that can give you an option to cause post back everytime the menu is clicked. The Property is true by default, try to change it to false and try your menu's again.

Thank you for posting at dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anu_dgr8 on: 10/12/2010 [Member] Starter | Points: 25

Up
0
Down
I am using the normal asp.net menu...Can you tell me which property you talking about??

Thanks and Regards,
Hoosha Boosha

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Anu_dgr8 on: 10/13/2010 [Member] Starter | Points: 25

Up
0
Down
i have got some info on this link:
http://www.codeproject.com/Forums/12076/ASP-NET.aspx?fid=12076&select=1585978&tid=1585285

Its mentioned here to use Use Atlas (or Ajax in general) to dynamically load the output markup of the content web page..But how to use it in my case,can anybody tel me??

Thanks and Regards,
Hoosha Boosha

Anu_dgr8, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response