Ask a Question related to ASP.NET General, Design and Development.
-
Jos #1
Re: what happened to the FORM.SUBMIT event in Dot.NET?
blenderdude wrote:
Make sure your button is the first button on the form.> 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?
More info:
[url]http://www.allasp.net/enterkey.aspx[/url]
--
Jos Branders
Jos Guest
-
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... -
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... -
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... -
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... -
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... -
blenderdude #2
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



Reply With Quote

