Can you dynamically assign a Master Page?



Can you dynamically assign a Master Page?..

Answer / Akshit Shakolay

Yes, in ASP.NET you can dynamically assign a master page at runtime using the Page.MasterPageFile property.n```csharpnprotected void Page_Load(object sender, EventArgs e)
{n this.MasterPageFile = "~/NewMaster.master";n}n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What combination of methods are used to improve the speed of the fill() method of the DataAdapter? a) BeginFillData() and EndFillData() b) StartFillData() and EndFillData() c) BeginLoadData() and EndLoadData() d) StartLoadData() and EndLoadData()

2 Answers   Syntax Softtech, winfoware,


I need to download file from web server, without using save as dialogue box. Can anyone help, thanks In advance.

1 Answers  


How do I upload a file from my ASP.NET page?

1 Answers  


How Response.flush works in server.Execute ?

1 Answers   Keane India Ltd, TCS,


What is ispostback property?

1 Answers  


Does asp.net still recognize the global.asa file?

1 Answers  


what are types of viewstate

1 Answers  


What is the Difference between MVC And MVP design pattrens

1 Answers   Symphony,


can any one explain about 3-tier architecture and how to deploy 3 layers of 3-tier architecture in 3 different servers.plz send me .net code

1 Answers   Wipro,


What are the main differences between asp and asp.net?

1 Answers  


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

2 Answers   MMTS,


what is client-server architecture in .net? and what is 3-tier architecture?

1 Answers  


Categories