Hi, I've put a simple page together using Visual Web Developer 2005 Express Edition. There's a Master Page, which isn't too complicated, and on one of the content pages, I have the following code:
When I run it, it always shows the Logged In template, never the Anonymous template. Pressing Logout has no effect whatsoever. Anyone any ideas about what I could be doing wrong?
Code:
[blue]<%@[/blue] Page Language="C#" MasterPageFile="~/MasterPage.master"
AutoEventWireup="true" CodeFile="Default.aspx.cs"
Inherits="_Default" Title="Untitled Page" [blue]%>[/blue]
[blue]<[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]Content[/maroon] ID="Content1"
ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"[blue]>[/blue]
[blue]<[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]Login[/maroon] ID="Login1" runat="server"[blue]>[/blue]
[blue]</[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]Login[/maroon][blue]>[/blue]
[blue]<[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]LoginView[/maroon] ID="LoginView1" runat="server"[blue]>[/blue]
[blue]<[/blue][maroon]LoggedInTemplate[/maroon][blue]>[/blue]
Logged In.[blue]<[/blue]br [blue]/>[/blue]
[blue]<[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]LoginStatus[/maroon] ID="LoginStatus1" runat="server" [blue]/>[/blue]
[blue]</[/blue][maroon]LoggedInTemplate[/maroon][blue]>[/blue]
[blue]<[/blue][maroon]AnonymousTemplate[/maroon][blue]>[/blue]
Not Logged In
[blue]</[/blue][maroon]AnonymousTemplate[/maroon][blue]>[/blue]
[blue]</[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]LoginView[/maroon][blue]>[/blue]
[blue]</[/blue][maroon]asp[/maroon][blue]:[/blue][maroon]Content[/maroon][blue]>[/blue]
When I run it, it always shows the Logged In template, never the Anonymous template. Pressing Logout has no effect whatsoever. Anyone any ideas about what I could be doing wrong?