Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • eddy 43 posts 64 karma points
    Nov 04, 2010 @ 13:37
    eddy
    0

    Logout Problem with multiple ASP.NET Forms

    I need a little help here.

    On my master template I have a ASP.NET control for logged in users to sign out at any given time:

    <form id="Form1" runat="server">
        <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutText="sign out" />
    </form>  

    On a nested article template I have the UComments form to post a comment:

    <form id="Comments" runat="server">
    <h3>Post a comment</h3>
    <umbraco:Macro RegisterScripts="1" Alias="UCommentForm" runat="server"></umbraco:Macro>
    </form>

    As the two forms will not run on the single page I figured the simplest way is to process the logout action on a different page such as the login pageI've looked in this post but am still not sure if this is the right solution.

    My login page code looks like this:

     <form id="Form1" runat="server">
      <asp:Login ID="Login1" runat="server"
        UserNameLabelText="User"
        PasswordLabelText="Password"
        TitleText=""
        RememberMeText="Remember Me?"
        LoginButtonText="Sign In"  
        ></asp:Login>
        </form>

    I would be grateful if someone could give me a tip or nudge in the right direction how to configure the site so that both forms work.

    Thanks, Eddy

Please Sign in or register to post replies

Write your reply to:

Draft