How to disable the default button?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default How to disable the default button?

    Hi group,
    My page consist of few text boxes and a server side button control
    (asp:button), when i finished editing and press enter key, it will fire up
    the button click event. How to disable this event till i click or focus to
    the button?

    regards,


    cw Guest

  2. Similar Questions and Discussions

    1. disable default loadbar
      hi all how do i disable the default shockwave loadbar from displaying on my published movies. ive looked under publish settings, but the couple...
    2. HOW TO DISABLE BACK BUTTON IN ASP
      hi all For a user to log of in an application ,i've used session.abandon method and furthur the control is redirected to the home page.as a...
    3. Disable escape button
      Hi All, I am trying to disable the escape button in the key board, if the escape button is pressed movie(which is a projector in my case) is being...
    4. Disable the tab button
      Hi All, I have a little problem, i have some sort of calculator with a bunch of textmembers which are editable. The thing is that i don't want ppl...
    5. Disable the Tab button in FLash MX
      Hey what's up people? I wanted to know if anyone knows how one can disable the TAB button when users are on a site. The problem Im's haveing cac...
  3. #2

    Default Re: How to disable the default button?

    Hi:

    You can trap the ENTER key (event.keyCode) and return false. Optionally before return false, you can also show the user some message.

    That should nullify 'Enter' Button effect.
    --
    ================================
    Deepak Kumar Vasudevan (MVP)
    CS Software Solutions

    Phones: +91-44-2819-1336 thru 38
    91-98400-26014
    [url]www.cssolutionsinc.com[/url]

    Mailbox Protected by SpamPal ([url]http://www.spampal.org.uk/[/url])
    ================================
    "cw" <cw_yeh@hotmail.com> wrote in message news:#ig8mf$WDHA.3924@tk2msftngp13.phx.gbl...
    Hi group,
    My page consist of few text boxes and a server side button control
    (asp:button), when i finished editing and press enter key, it will fire up
    the button click event. How to disable this event till i click or focus to
    the button?

    regards,


    Deepak Kumar Vasudevan Guest

  4. #3

    Default Re: How to disable the default button?

    check out this link,
    [url]http://www.allasp.net/enterkey.aspx[/url]

    --
    Saravana
    Microsoft India Community Star,MC**
    [url]www.ExtremeExperts.com[/url]



    "cw" <cw_yeh@hotmail.com> wrote in message
    news:#ig8mf$WDHA.3924@tk2msftngp13.phx.gbl...
    > Hi group,
    > My page consist of few text boxes and a server side button control
    > (asp:button), when i finished editing and press enter key, it will fire up
    > the button click event. How to disable this event till i click or focus to
    > the button?
    >
    > regards,
    >
    >

    Saravana Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139