I am working in asp.net 3.5/4.0. can i know about how can we add master page in runtime?
Master Page
Hello Sir..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sanjeeb LenkaPosted Aug 14, 2013, 3:03 AM
refer to this link it may help you
http://forums.asp.net/post/2508056.aspx
Iftikar HussainPosted Aug 14, 2013, 3:03 AM
Please let me know the requirement for adding the master page at runtime. So that I can provide you correct solution.
Regards,
Iftikar
Sunny SharmaPosted Aug 14, 2013, 3:02 AM
To add a master at runtime, you need to specify the desired master page before the page is initialized. Add this code block inside your page' code behind file: