Reputation: 49
I have a master page in my ASP.Net application. I have a Menu inside a master page which redirects to its own content pages. All the pages are derived from the same masterpage. each time a redirect happens from One page to another the Master Page is loaded. Is there a way that we can avoid MasterPage to reload after redirection happens.
To be precise I want to know can we prevent Masterpage from reloading on Response.redirect.
Upvotes: 0
Views: 3181
Reputation: 19230
A response Redirect is a page refresh so the master page has to reload.
The way around it is to use an AJAX call and refresh only your content areas.
Upvotes: 1
Reputation: 94643
Is there a way that we can avoid MasterPage to reload after redirection happens?
No! Please read "Run-time Behavior of Master Pages" from the MSDN doc.
Upvotes: 0