what happened to the FORM.SUBMIT event in Dot.NET?

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

  1. #1

    Default Re: what happened to the FORM.SUBMIT event in Dot.NET?

    blenderdude wrote:
    > I have a form with a text box an "ok" button. The processing takes
    > place on the buttons onClick() event. It works great if the user
    > clicks the button. But often the user would rather hit enter on the
    > keyboard. This does not trigger the button's onClick() event and no
    > processing takes place.
    >
    > I would like to process the data when the user hits enter. In client
    > side script I would do the processing on the form.submit() event. In
    > windows forms I would set the buttons "default" property to true. How
    > do I do this in ASP.NET?
    Make sure your button is the first button on the form.

    More info:
    [url]http://www.allasp.net/enterkey.aspx[/url]

    --

    Jos Branders


    Jos Guest

  2. Similar Questions and Discussions

    1. onClick event on a Submit button
      I have a form that has one input field and a submit button that has an onclick event coded that calles a javascript function. If focus is on the...
    2. After submit of a form
      I want to allow software to be donwloaded but only after a form is filled out , verified and submitted. No matter where I place the code it does not...
    3. Form Field/ Form Submit Problems (probably an easy answer...)
      Hey Everyone.. I have a form that has approximately 7 text fields and 1 checkbox. Generally when this form is submitted(to itself BTW) it works...
    4. Submit Event
      Sure, you'd just do this on whatever page is processing your form. When the person clicks submit, he's submitting to an action of the form, so just...
    5. submit event drop down list does not fire
      I have two asp pages. Both have similar purposes. I am trying to get the inline frame in both pages to update (submit) when a user clicks on a...
  3. #2

    Default Re: what happened to the FORM.SUBMIT event in Dot.NET?

    On Mon, 21 Jul 2003 13:35:03 +0200, "Jos"
    <josnospambranders@fastmail.fm> wrote:

    I found the answer to my own question. To simulate the "default
    button" effect, you should create the button as html button, not a web
    server control. You make the button and set it to be of type submit
    and it works great. Of course you cannot set an onclick event for it
    on the server side. But that is easy enough to deal with.
    thanks,
    blenderdude
    >blenderdude wrote:
    >> I have a form with a text box an "ok" button. The processing takes
    >> place on the buttons onClick() event. It works great if the user
    >> clicks the button. But often the user would rather hit enter on the
    >> keyboard. This does not trigger the button's onClick() event and no
    >> processing takes place.
    >>
    >> I would like to process the data when the user hits enter. In client
    >> side script I would do the processing on the form.submit() event. In
    >> windows forms I would set the buttons "default" property to true. How
    >> do I do this in ASP.NET?
    >
    >Make sure your button is the first button on the form.
    >
    >More info:
    >[url]http://www.allasp.net/enterkey.aspx[/url]
    blenderdude 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