Geeks With Blogs
Fórmulas e Cenas Object Reference Not Set to an Instance of an Object

        protected override void OnPreInit(EventArgs e)
        {
            Page.MasterPageFile = "~/LinkToMasterPage";
            base.OnInit(e);
        }

 

Enjoy :)

Posted on Wednesday, March 3, 2010 5:39 AM Geral , Asp.Net , C# | Back to top


Comments on this post: How to: Change Master Page at runtine

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Sglima | Powered by: GeeksWithBlogs.net