server event not firing

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

  1. #1

    Default server event not firing

    I have a form with a single field and a submit button with a server event.

    If I click the submit button, the event runs and everything is fine, if I
    hit enter in the form, the server event does not fire!

    Another wierd thing is, when I add a second text input field, the event
    fires when I press enter.

    I could change the button to a "button" so that the form wont submit unless
    the button is clicked, but I want to be able to submit with an enter press.

    Has anyone else come accross this problem?

    Lee.


    Lee Swanson Guest

  2. Similar Questions and Discussions

    1. Click Event Not Firing
      In Framework 1.1 (VS 2003, C#) I've written a server control that contains a button. If I place the control on a page surface, it renders fine and...
    2. event firing problem
      Hi IN my asp.net application (C#.net) i've grid control whith pagerstyle mode=numericpages. in codebehind page i've events for...
    3. Server Control - Datagrid paging event - not firing for previous pages
      Hello All I am having a pretty wired problem...I am writing a web part (SPS 2003) that uses a Datagrid. In the web part, I create the datagird...
    4. firing event on server via javascript
      Hi all is there any possiblity of doing this ? for example,i have handler procedure defined in codebehind : protected sub proc(sender as...
    5. OnItemDataBound event not firing
      I am creating a Templated Data-Bound control. When the DataBind() method is called I would like the OnItemDataBound to fire. I can tell something...
  3. #2

    Default Re: server event not firing

    Yup, this has been addressed lots of times in the past. Search in
    [url]http://groups.google.com[/url] with keywords like "hitting enter doesn't submit
    form"


    --
    Victor Garcia Aprea
    Microsoft MVP | ASP.NET
    Looking for insights on ASP.NET? Read my blog:
    [url]http://obies.com/vga/blog.aspx[/url]
    To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
    and not by private mail.

    "Lee Swanson" <lee@nospam.ibc.com.au> wrote in message
    news:uWsCnToSDHA.1320@TK2MSFTNGP12.phx.gbl...
    > I have a form with a single field and a submit button with a server event.
    >
    > If I click the submit button, the event runs and everything is fine, if I
    > hit enter in the form, the server event does not fire!
    >
    > Another wierd thing is, when I add a second text input field, the event
    > fires when I press enter.
    >
    > I could change the button to a "button" so that the form wont submit
    unless
    > the button is clicked, but I want to be able to submit with an enter
    press.
    >
    > Has anyone else come accross this problem?
    >
    > Lee.
    >
    >

    Victor Garcia Aprea [MVP] 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