0

hi everybody,
i'm doing a ASP.NET project with VB.unfortunately,when i'm using Logout control, i still can not logout.
So i can't logout.. And i have tried to delete the browser cache, but no luck..
What could be wrong?
:'(

<asp:LoginView ID="LoginView2" runat="server">
           <AnonymousTemplate>
           <asp:Login ID="Login1" runat="server">
                <LayoutTemplate>
                <div class="username">
                      <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>               
                      <asp:TextBox ID="UserName" runat="server" style="margin-left:20px; width:170px; border:none; border:0px;"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                      ControlToValidate="UserName" ErrorMessage="User Name is required." 
                      ToolTip="User Name is required." ValidationGroup="ctl00$Login1" 
                      ForeColor="RED" Font-Size="10pt">*</asp:RequiredFieldValidator>
                </div>
                <div class="password">
                      <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                      <asp:TextBox ID="Password" runat="server" TextMode="Password" style="margin-left:30px; width:170px; border:none; border:0px;"></asp:TextBox>
                      <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                      ControlToValidate="Password" ErrorMessage="Password is required." 
                      ToolTip="Password is required." ValidationGroup="ctl00$Login1" ForeColor="RED" Font-Size="10pt">*</asp:RequiredFieldValidator>
               </div> 
               <div class="btn_login">                    
               <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" 
                ValidationGroup="ctl00$Login1" Height="40px" />
               </div>
               <div style="width:auto; height:auto; float:left; margin-left:25px; margin-top:3px; padding-left:20px;">
               <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." 
                       AutoPostBack="True" />
               </div>
               <div>                         
               <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
               </div>                   
                </LayoutTemplate>
            </asp:Login>
            </AnonymousTemplate>
            <LoggedInTemplate>
            Welcome to AdminCP page,
            <asp:LoginStatus id="ccLogin" runat="server"
                LoginText="Sign In"
                LogoutText="Sign Out"
                LogoutPageUrl="~/admin/login.aspx"
                LogoutAction="Redirect" onloggingout="ccLogin_LoggingOut" />
            </LoggedInTemplate>
            </asp:LoginView>
1
Contributor
2
Replies
3
Views
6 Years
Discussion Span
Last Post by kelvnese
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.