My studying notebook

2008/09/05

Tip:How append different master page by browser

9/05/2008 08:03:00 PM Posted by Unknown , No comments
We know that we can use master page to reate a consistent layout for the pages in your application. When you assign a master page to the cotent page, you can modify page directive to append different browser.

Usually we assing one master page to cotent page. Now we assign two master page to same content page. And modify MasterPageFile directive

For example:
<%@ Page Language="C#" Mozilla:MasterPageFile="~/FFMasterPage.master"
ie:MasterPageFile="~/IEMasterPage.master" AutoEventWireup="true"
CodeFile="DefaultContent.aspx.cs" Inherits="DefaultContent" %>

0 comments:

Post a Comment