Last post Jan 28, 2008 12:59 AM by Amanda Wang - MSFT
Jan 24, 2008 04:54 AM|dagamshiva|LINK
I am creating website.In that web site i am using ajax with master page. i have menu button in master page. When i click a menu item ,it will redirect to another page. How can i refresh only content page when i click the menu item( i tried updatepanel placing
in master page ,but it is not working).
Please ANy body help me,
Thanks in advance.
Jan 24, 2008 06:03 AM|kaushalparik27|LINK
you may get some help at
ASP.NET AJAX > The UpdatePanel Control > Using the UpdatePanel Control with Master Pages
Jan 28, 2008 12:59 AM|Amanda Wang - MSFT|LINK
Base on your description, you want to prevent the whole page postback when you click on the menuitem to direct to a new content page?
As you said, your menu control is on the master page. In fact, you can not implement the page no-refresh when you re-load the content page.
Because the master page class derives from the UserControl class. When the application is executing, the master page just like another child control. So you can say the master page is not a true page.
And, when the page loads, you can notice the navigationURL of the Browser address bar is the content page's, but not the master page's.
So I would suggest you use iframe instead of the master page to implement no-postback when you click on the menuitem.
The more about how the master page works, you can read this link:
Hope it helps.