I don't want the enter key submitting a webform :'(

Discussion in 'ASP .Net' started by =?Utf-8?B?ZmFzZW5qb2Y=?=, Apr 19, 2005.

  1. Hi everybody!

    I need some help here. I have some .aspx pages in my application with some
    textboxes, Submit buttons, etc. All of them work perfect, but I don't know
    why, when I press the Enter key, I leave session and have to login again.

    I also have a usercontrol (.ascx) which I use in the top of all of the pages
    wich include 2 submit buttons (menu and exit).

    Is there anybody here who could help me avoid this problem? I don't know if
    I can disable the enter key in the whole application or whatever...

    Thanks.

    fasenjof
     
    =?Utf-8?B?ZmFzZW5qb2Y=?=, Apr 19, 2005
    #1
    1. Advertising

  2. I think, signout button is the first button on the page.
    The problem arises here. I suggest you to use a hyperlink
    or image, a button for signout instead of a button

    >-----Original Message-----
    >
    >Hi everybody!
    >
    >I need some help here. I have some .aspx pages in my

    application with some
    >textboxes, Submit buttons, etc. All of them work perfect,

    but I don't know
    >why, when I press the Enter key, I leave session and have

    to login again.
    >
    >I also have a usercontrol (.ascx) which I use in the top

    of all of the pages
    >wich include 2 submit buttons (menu and exit).
    >
    >Is there anybody here who could help me avoid this

    problem? I don't know if
    >I can disable the enter key in the whole application or

    whatever...
    >
    >Thanks.
    >
    >fasenjof
    >.
    >
     
    =?iso-8859-1?Q?Yunus_Emre_ALP=D6ZEN_=5BMCP=5D?=, Apr 19, 2005
    #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. Mike Kingscott
    Replies:
    0
    Views:
    576
    Mike Kingscott
    Dec 5, 2003
  2. thechaosengine
    Replies:
    2
    Views:
    474
  3. Phil
    Replies:
    2
    Views:
    5,072
  4. BrianDH

    Enter Key H*ll, control enter key submit button

    BrianDH, Jan 12, 2005, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    410
    Anders Matthiessen
    Jan 12, 2005
  5. M P
    Replies:
    1
    Views:
    494
Loading...

Share This Page