Login ASP.NET control

Discussion in 'ASP .Net' started by Formentz, Jul 16, 2007.

  1. Formentz

    Formentz Guest

    Hi guys,

    I have a problem that should be quite simple, but I can't figure out:

    I have an asp:Login control on the web form, but in the same form there are,
    before the login control, other buttons that have the UseSubmitBehavior set
    to True.

    If I enter username and password, then hit RETURN, the page does not the
    login, but it seems that one of the other UseSubmitBehavior button fired.

    Is there a way I can force the LoginButton to fire, in any case, when the
    user hits RETURN on the login control?

    TIA

    Ciao
    Formentz
     
    Formentz, Jul 16, 2007
    #1
    1. Advertising

  2. Set the default button for the form:
    http://weblogs.asp.net/scottgu/archive/2005/08/04/421647.aspx

    --
    Gregory A. Beamer
    MVP; MCP: +I, SE, SD, DBA
    http://gregorybeamer.spaces.live.com
    Co-author: Microsoft Expression Web Bible (upcoming)

    ************************************************
    Think outside the box!
    ************************************************
    "Formentz" <> wrote in message
    news:%...
    > Hi guys,
    >
    > I have a problem that should be quite simple, but I can't figure out:
    >
    > I have an asp:Login control on the web form, but in the same form there
    > are, before the login control, other buttons that have the
    > UseSubmitBehavior set to True.
    >
    > If I enter username and password, then hit RETURN, the page does not the
    > login, but it seems that one of the other UseSubmitBehavior button fired.
    >
    > Is there a way I can force the LoginButton to fire, in any case, when the
    > user hits RETURN on the login control?
    >
    > TIA
    >
    > Ciao
    > Formentz
    >
     
    Cowboy \(Gregory A. Beamer\), Jul 16, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. frekster
    Replies:
    1
    Views:
    959
    frekster
    Sep 14, 2005
  2. ike2010
    Replies:
    0
    Views:
    689
    ike2010
    Nov 15, 2005
  3. Sasquatch
    Replies:
    2
    Views:
    1,339
    Sasquatch
    Oct 3, 2006
  4. Sasquatch
    Replies:
    2
    Views:
    494
    Sasquatch
    Oct 4, 2006
  5. Jack
    Replies:
    1
    Views:
    751
Loading...

Share This Page