How to avoid refreshing of masterpage while navigating in site?
You will probably want to look at using AJAX to stop this from happening. You will want to read up on using an UpdatePanel. Below are some good articles that goes over this:
- http://geekswithblogs.net/ranganh/archive/2007/05/11/112405.aspx
- http://msdn.microsoft.com/en-us/library/bb399001.aspx
You also have the option of using jQuery to handle your AJAX calls. While I typically prefer the use of jQuery when using AJAX, I am not sure I would use it in your situation. If you would like to look at what it offers take a look at these links:
- http://api.jquery.com/jQuery.ajax/
- http://sixrevisions.com/javascript/the-power-of-jquery-with-ajax/
Abdullah
Updated on November 03, 2022Comments
-
Abdullah over 1 year
In my website, I have created a masterpage and attached all of my pages to it. My masterpage structure contains a header and a footer. On the left it has a treeview control, which i have attached to all my pages, and on the right there is a contentplaceholder to show the content of respective pages.
My problem is that when I click any link in the treeview it refreshes the whole masterpage and open the respective page. I wish to avoid this refresh. Means it should show the contents of page on right side contentplaceholder without refreshing the whole page.
I have seen people suggesting to use iframes. But for using iframes I shall have to restructure my website. Is there any other solution than iframes and with minimal changes to the work that I have done?
-
Abdullah almost 13 yearsHi Abe Thanks for your reply. I am asking about moving between one page to another in my website by clicking on the links in treeview, i want to stop refreshing of masterpage there. While for retrieving data within my page, i am already using ajax there. Can i use ajax to stop refreshing on masterpage while moving from one page to another?
-
Abdullah almost 13 yearsHi jackson Thanks for your reply. I am asking about moving between one page to another in my website by clicking on the links in treeview, i want to stop refreshing of masterpage there. While for retrieving data within my page, i am already using ajax there. Can i use ajax to stop refreshing on masterpage while moving from one page to another?