How to avoid refreshing of masterpage while navigating in site?

12,732

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:

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:

Share:
12,732
Abdullah
Author by

Abdullah

Updated on November 03, 2022

Comments

  • Abdullah
    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
    Abdullah almost 13 years
    Hi 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
    Abdullah almost 13 years
    Hi 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?