<%@ Page Language="C#" Title="Content Page" MasterPageFile="~/nonMember.master"%>
<%@ MasterType TypeName="BaseMaster" %>
<script runat="server">
protected void Page_PreInit(Object sender, EventArgs e)
{
this.MasterPageFile = "nonMember.master";
if(Request.QueryString["member"] == "true")
{
this.MasterPageFile = "Member.master";
}
this.Title = Master.MyTitle;
}
</script>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
Content for Content page.
</asp:Content>
Juan T. Llibre, asp.net MVP
asp.net faq :
http://asp.net.do/faq/
foros de asp.net, en español :
http://asp.net.do/foros/
======================================
"WebBuilder451" <We***********@discussions.microsoft.comwrote in message
news:4B**********************************@microsof t.com...
is there a way to turn off a master page under some conditions? I have a
master that has a master page. if a person is a member i wand to show the
second level master else i want to hise it. Is this possible?
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)
kes