set masterpage for browser in web.config (.net2.0)

A

Alexander Widera

Hi,

it is possible to set the browser dependent masterpage in the web.config,
and how?
in the page attributes it is an easy way, but in the web.config?

In the page-tag it would look like this:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" ie:MasterPageFile="~/MasterPage_IE.master"
mozilla:MasterPageFile="~/MasterPage_Firefox.master" %>


Thanks a lot,

Alex
 
S

Showjumper

<configuration>
<system.Web>
<pages master="default.master" />
</system.Web>
</configuration>

Ashok
"Alexander Widera"
 
A

Alexander Widera

this is for the "default" browser....
but how to set special masterpages for different browsers (in the
web.config)?
In the page tag it looks like that (see below)... but in the web.config
.....
i dont now how....

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" ie:MasterPageFile="~/MasterPage_IE.master"
mozilla:MasterPageFile="~/MasterPage_Firefox.master" %>

alex
 
A

Alexander Widera

hasn't anybody a solution?

"Alexander Widera"
this is for the "default" browser....
but how to set special masterpages for different browsers (in the
web.config)?
In the page tag it looks like that (see below)... but in the web.config
....
i dont now how....

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" ie:MasterPageFile="~/MasterPage_IE.master"
mozilla:MasterPageFile="~/MasterPage_Firefox.master" %>

alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top