I have an a-href link on my page with the following code:
<a href="WebForm2.aspx?print=true">Print me!</a>
Also in my code behind page I have the following code:
void Page_preInIt(object sender, EventArgs e)
{
if (Request.QueryString["print"]!=null)
{
MasterPageFile = "~/Print.Master";
}
}
Now I would like to change the code in a way by clicking on my link ("Print me" in this example or whatever... ) switch the mode to the print master page and the default master page! Do you have any idea how I can switch the master pages back and forth?
Thanks
...
Go to the complete details ...