Author: Rich dvc | Posted on: 3/8/2009 2:17:08 AM | Views : 278

This code runs file in the aspx file ---- "Profile" and "MasterPageFile" are defined in Web.config

<script runat="server">
    protected void Page_PreInit(object sender, EventArgs e)
    {
        if (Request["master"] != null)
        {
            switch (Request["master"])
            {
                case "Dynamic1":
                    Profile.MasterPageFile = "Dynamic1.master";
                 ...

Go to the complete details ...