I have master page and in this master page I have hyperlinks, which adds to the master page at runtime, these hyperlinks takes to the different content pages. The problem is when i click the hyperlink it brings whole page refresh, I know why it is refreshing
like this because there is no separate master, content pages. they together comes as a page. But I need to refresh only content page is there any possiblility please let me know
You can do it by asynchronous update of content page by keeping your content place holder inside an update panel. You can have vice versa also. Then you have to use update panel's update() call. By default all Load events to happen on postbacks. http://msdn.microsoft.com/en-us/library/ms178472.aspx
To achieve your requirement refer code samples from these links
daniel_koppo...
Member
2 Points
13 Posts
master page hyperlink needs to refresh content page only not whole page how to achieve this?
Nov 03, 2012 12:41 AM|LINK
HI
I have master page and in this master page I have hyperlinks, which adds to the master page at runtime, these hyperlinks takes to the different content pages. The problem is when i click the hyperlink it brings whole page refresh, I know why it is refreshing like this because there is no separate master, content pages. they together comes as a page. But I need to refresh only content page is there any possiblility please let me know
thanks
anil.india
Contributor
2613 Points
453 Posts
Re: master page hyperlink needs to refresh content page only not whole page how to achieve this?
Nov 03, 2012 04:37 AM|LINK
You can do it by asynchronous update of content page by keeping your content place holder inside an update panel. You can have vice versa also. Then you have to use update panel's update() call. By default all Load events to happen on postbacks. http://msdn.microsoft.com/en-us/library/ms178472.aspx
To achieve your requirement refer code samples from these links
http://forums.asp.net/t/1380510.aspx/1
http://forums.asp.net/t/1645029.aspx
http://www.codeproject.com/Questions/351309/Content-page-refresh-without-master-page-postback
http://dotnetspeaks.net/post/Update-Content-Page-controls-from-Masterc2a0Page.aspx
http://stackoverflow.com/questions/4669813/how-to-update-content-page-from-master-page
http://www.codeproject.com/Articles/36107/Master-Page-and-Content-Page-Interaction
codepattern.net/blog ||@AnilAwadh
chetan.sarod...
All-Star
66609 Points
11270 Posts
Re: master page hyperlink needs to refresh content page only not whole page how to achieve this?
Nov 05, 2012 02:42 AM|LINK
Refer this
http://vikasweb.wordpress.com/2010/09/19/removing-flickering-and-postback-in-master-page-%E2%80%9Cfajax%E2%80%9D/
http://forums.asp.net/t/1840940.aspx/1?Master+page+with+menu+refreshes+whole+page+
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.