开发者

Response.Redirect and masterpage

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 redi开发者_StackOverflow社区rect 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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜