Possible to load Masterpage's Content(aspx-page) asynchronously from Menu?
first of all: I'm new to Asp.Net MasterPages and jQuery. I have a Asp.Net Project with one MasterPage. I have used this menu for navigation. It's in the header of the MasterPage. Is it possible with Ajax to change the C开发者_如何学运维ontent-Page from this menu without having the whole MasterPage reloaded(including the Menu)?
EDIT: perhaps this link describes my problem better: http://forums.asp.net/t/1046795.aspx Is iframe an alternative and when yes, does MasterPages make sense anymore when using iframes?
EDIT: Kervin and this page leads me on the right track.
Yes. Definitely.
You can do this using only jQuery, which I would recommend. Or you can use an ASP.Net callback and UpdatePanel.
For instance, your Menu's links could all be jQuery click event handlers that would update parts of your content page by id or class using jQuery.ajax().
Also see the question "How to use JQuery, select element by ID and ASP.NET without putting ctl00_ everywhere in the code". For a basic intro in using the ClientID property so your server controls will work with jQuery event handlers.
精彩评论