Forum

Number Of Page View:100,000+/Months
LOGIN |New User

Reply

Can you dynaimically assign a Master Page?
   void Page_PreInit(Object sender, EventArgs e) {
    
        if (Request.Browser.IsBrowser("IE")) {
           this.MasterPageFile = "ArticleMaster_IE.master";
        }
        else if (Request.Browser.IsBrowser("Mozilla")) {
           this.MasterPageFile = "ArticleMaster_FireFox.master";
        }
        else {
           this.MasterPageFile = "ArticleMaster.master";
        }
    }


Posted By: Name:Rajesh Kr URL: Can you dynaimically assign a Master Page?