Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Can we set Master Page dynamically?
Question Posted on 02 Mar 2022

Home >> DotNet >> ASP.NET >> Can we set Master Page dynamically?




Can we set Master Page dynamically?
Yew, we can change Master Page dynamically. But to change this we use MasterPageFile property to be set only in the PreInit event. Below is the syntax of set Master Page dynamically:-

void Page_PreInit(Object sender, EventArgs e)
{
this.MasterPageFile = "~/MasterPageID.master";
}
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Use of Calendar control in dotnet with code
How to improve Front End UI performance of dotnet web application?
File upload in dotnet
reverse a string
function of garbage collector






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |