More in this section
Forums / General Discussions / Login on Enter Press

Login on Enter Press

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Scott Bradley
    Scott Bradley avatar
    27 posts
    Registered:
    20 Jan 2010
    11 Jul 2011
    Link to this post
    Is there a configuration I'm missing on the login widget that would allow for a user to enter a username, password and press enter to login?  I always have to click login.  Or do I have to write a custom login module for it?
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    02 Jan 2018
    16 Jul 2011
    Link to this post
    Hello Scott Bradley,

    Can you please try modifying your LoginViewControl.ascx by adding the following code excerpt:
    <!-- do not remove this button. It is used for the default form submit (pressing enter) -->
                    <div style="display: none;">
                        <asp:Button ID="hiddenSubmitButton" runat="server" CommandName="Login" ValidationGroup="LoginBox" />
                    </div>

    Greetings,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Scott Bradley
    Scott Bradley avatar
    27 posts
    Registered:
    20 Jan 2010
    19 Jul 2011
    Link to this post
    That didn't work but I modified the LoginControl as follows.  Basically wrapping it in a panel and assigning a defaultbutton worked.

    <

     

     

    asp:panel id="pnlLogin" runat="server" defaultbutton="LoginButton">

     

     

     

    <h3>Login</h3>

     

     

     

    <fieldset>

     

     

     

    <ul>

     

     

     

    <li>

     

     

     

    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>

     

     

     

    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>

     

     

     

    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"

     

     

     

    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>

     

     

     

    </li>

     

     

     

    <li>

     

     

     

    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>

     

     

     

    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>

     

     

     

    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"

     

     

     

    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>

     

     

     

    </li>

     

     

     

    <li class="checkbox">

     

     

     

    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />

     

     

     

    </li>

     

     

     

    </ul>

     

     

     

    <p>

     

     

     

    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>

     

     

     

    </p>

     

     

     

    <p>

     

     

     

    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$Login1" />

     

     

     

    </p>

     

     

     

    </fieldset>

     

     

     

    </asp:panel>

     

Register for webinar
3 posts, 0 answered