From what I’ve already read this appears to be impossible, but I wanted to see if anyone out there has a secret trick up their sleeve or at least a definitive ‘no’.
Supposedly a master page is really just a control for a content page to use, not actually the ‘master’ of a content page. If I wanted to go from one content page, to another content page with the same master page, I would just say
Response.Redirect('PageB.aspx');
But this would immediately cause a postback, flickering the page, which is the crappy pre-ajax way of doing things.
In this current project, I’m trying to see if I could figure out how to change the current content page of a ContentPlaceHolder in the master page asynchronously, when a button is clicked on the master page.
Is this possible, if so how?
I don’t know if you can between pages (.aspx) but it can definitely be done using UserControls.
ASP.Net pages each have their own URL so what you’re trying to do is to go from one URL to another without any postback, that’s just not how it’s supposed to work.
Using user controls (.ascx):
Create a page that uses the MasterPage and use something like this in the content
Search for UpdatePanel and tweak its settings to do what you want, then learn how to swap user controls in a placeholder.