Change Master Page Depending on Browser

Did you know that, in your content pages, you can specify a certain masterpage, depending on the browser that’s hittin 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:

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

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>