Click here to Skip to main content
15,908,264 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two master pages, on button click event I want to open particular master page, so how to do this...
Posted
Comments
Sanket Saxena 24-Dec-14 7:14am    
Could you please elaborate your problem...can't getting "opening a master page"

1 solution

Master page can not be opened y itself, it is not an individual entity. You use a master page by linking it to an actual content page...
HTML
<![CDATA[<%@ Page Language="C#" MasterPageFile="~/MasterPages/Master1.master" Title="Content Page"%>]]>

(You can set master page also from code behind...)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900