Change Master Page Depending on Browser

Posted by David Wier on 02/1/10 | Tips and Tricks

I learned this during my first week of SetFocus training:

Did you know that, in your content pages, you can specify a certain MasterPage, depending on the browser that's hitting your page (at least IE and FireFox).

All you need to do is to add a section for each specific browser to your content page's Page Directive, after creating a separate MasterPage for each browser:

ie:MasterPageFile="~/MyIE.master"
mozilla:MasterPageFile="~/MyFireFox.master"


















































































































































0 Comments

COMMENTS

Name:
URL:
Comment:

Comments are disabled for this article.