Is the asp menu with sitemap compatible with Ajax updatepanel. I see conflicting posts. Can someone give me direction or point me to examples where this works?
UpdatePanel controls are used to update selected regions of a page instead of updating the whole page with a postback. The Menu control can be used inside an UpdatePanel control with the restriction that styles must be applied by using a reference to a Cascading
Style Sheet (CSS) class. For example, instead of setting the DynamicHoverStyle property by using a property-subproperty attribute, set the style by using the property-CssClass attribute. Similarly, when you use the DynamicHoverStyle template to set a style,
use the CssClass attribute of the template.
surfsista
Member
7 Points
86 Posts
asp:menu and Ajax?
Sep 13, 2008 04:16 PM|LINK
Is the asp menu with sitemap compatible with Ajax updatepanel. I see conflicting posts. Can someone give me direction or point me to examples where this works?
chetan.sarode
All-Star
53419 Points
9044 Posts
Re: asp:menu and Ajax?
Sep 15, 2008 03:14 AM|LINK
Controls that Are Not Compatible with UpdatePanel Controls
The following ASP.NET controls are not compatible with partial-page updates, and are therefore not supported inside an UpdatePanel control:
TreeView and Menu controls.
Web Parts controls. For more information, see ASP.NET Web Parts Controls.
FileUpload controls when they are used to upload files as part of an asynchronous postback.
GridView and DetailsView controls when their EnableSortingAndPagingCallbacks property is set to true. The default is false.
Login, PasswordRecovery, ChangePassword, and CreateUserWizard controls whose contents have not been converted to editable templates.
The Substitution control.
Validation controls, which includes the BaseCompareValidator, BaseValidator, CompareValidator, CustomValidator, RangeValidator, RegularExpressionValidator, RequiredFieldValidator, and ValidationSummary control.
http://asp.net/ajax/documentation/live/overview/UpdatePanelOverview.aspx
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
surfsista
Member
7 Points
86 Posts
Re: asp:menu and Ajax?
Sep 15, 2008 05:06 AM|LINK
Yes I've seen that ... but I have also seen this:
http://asp-net-help.blogspot.com/2008/08/menu-control-overview.html
Using the Menu Control with UpdatePanel Controls
UpdatePanel controls are used to update selected regions of a page instead of updating the whole page with a postback. The Menu control can be used inside an UpdatePanel control with the restriction that styles must be applied by using a reference to a Cascading Style Sheet (CSS) class. For example, instead of setting the DynamicHoverStyle property by using a property-subproperty attribute, set the style by using the property-CssClass attribute. Similarly, when you use the DynamicHoverStyle template to set a style, use the CssClass attribute of the template.
dwhite
Star
8990 Points
1423 Posts
Re: asp:menu and Ajax?
Sep 15, 2008 01:40 PM|LINK
Out of the box, it doesn't work, but there are fixes for it, see http://siderite.blogspot.com/2007/04/using-menu-inside-updatepanel.html
-Damien
Latest Blog Post: BDD with ASP.NET MVC and Cucumber