Home
About
User Group Events
Other Events
News
Downloads
Discussions


General Discussions


Event Discussions


Job Board


ASP.NET


VB.NET


CSharp
Study Group



International .NET Association (INETA)
Do you want to sponsor an Event?
Contact the .NET User Group at sponsors@torontoug.net
 Online: 

There are currently:
48 Guests.

0 of 6,455 Members.




Hosting
provided by




Author Thread: Master page problems when forms authentication is enabled
freyes
Master page problems when forms authentication is enabled
Posted: Monday, May 15, 2006 7:55 AM (EST)

Hi,>>

> >

I have the login page that is inherited from the master page. When forms authentication is enabled the login page do not display the layout content of the master page. When the forms authentication is disabled the login page perfectly displays the content of the master page.>>

 >>

What can I do to make the login page display the content of the master page when the forms authentication is enabled?>>

> >

Find below the forms authentication section of my web.config file and the login page:>>

> >

<authentication mode="Forms">>>

<forms name="mySite">>

 loginUrl="Login.aspx">>

 protection="All">>

 timeout="30">>

 path="/"/>>>

 </authentication>>>

 <location path="Login.aspx">>>

 <system.web>>>

 <authorization>>>

 <allow users="*" />>>

 </authorization>>>

 </system.web>>>

 </location>>>

 ---------------------------------------->>

 >>

 <%@ Page Language="C#" MasterPageFile="~/MasterPage.master">>

 AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login">>

 Title="Untitled Page" %>>>

 >>

 <%@ Register Src="Controls/LoginControl.ascx" TagName="LoginControl">>

 TagPrefix="uc1" %>>>

 <asp:Content ID="Content1" ContentPlaceHolderID="CPHMenu">>

 Runat="Server">>>

 </asp:Content>>>

 <asp:Content ID="Content2" ContentPlaceHolderID="CPHWorkArea">>

 Runat="Server">>>

 <uc1:LoginControl ID="loginControl" runat="server" />>>

 </asp:Content>>>

 >>

 Thank you,>>




 


Home   |  About   |  User Group Events   |  Other Events   |  News   |  Downloads   |  Discussions   |  Study Group