Last post Jul 28, 2015 04:50 PM by ryanbesko
Jul 28, 2015 11:04 AM|shall42|LINK
I would like Headers and footers to load on first page.
On 2nd, 3rd, etc pages, I do not want to re-load the headers and footers( since they are the same).
I just want to load the new info in the Content ( body) of the web page.
I looked into "web form with Master page" where I had a hidden input textbox in the header section.
I think that re-loads everytime.
Under add new item for a project ( which has items like "Web Form","ASP.Net Handler","WCF Service", etc),
which one(s) would I need to update the "Content" ( body) without reloading the headers and footers ?
Jul 28, 2015 03:41 PM|DeadTroll|LINK
This question is hard to understand. Please provide more context. Are you talking about a master page with placeholders for a header and footer? Posting some code would also help clear up any confusion.
Jul 28, 2015 04:07 PM|shall42|LINK
I did use a "web form with a master page" which had headers and footers. During my testing, I think the headers and footers
were being reloaded. For testing I put a hidden textbox in header. PageA set value of textbox in header. PageB when loaded erased the value
in the hidden field.
Jul 28, 2015 04:50 PM|ryanbesko|LINK
Yes the header and footer will reload when navigating to a new page. You will need to either look into building a Single Page Application (SPA) or loading the content into a <div> on your main page using Ajax.
<div id="content">Main content... Initial content displays when loading main page. Use Ajax to load different content instead of navigating to a new page.</div>