Ask a Question related to ASP.NET General, Design and Development.
-
Simon Fainveits #1
How to control enter button on the client PC in ASP.Net
Does anybody know how to control enter button on the web
form? It seems to if the user hits enter button at run
time then it fires submit button click event. I have also
noticed that if the page does not have a submit button
then the button that was first placed on the form at
design time is fired and I do not want that to happen. Is
there any way to control enter button behaviour?
Many thanks
Simon
Simon Fainveits Guest
-
disabling enter button (revisited)
I posted this question before, but all the answers given were not feasible either because it's a VERY long form (so I don't want to make everything... -
How control which button has focus [ENTER]
Hello, I'm facing a problem with the behavior of the key while editing items in a datagrid. I would like to make sure that the cancel button is... -
attaching client script to toolbar button control...
Hello, I am sick and tired of ochestrating server and client side scripts. Basically I am using toolbar from IE web controls and want to attach... -
Default Button to Catch <ENTER> key
Hi, It's a login screen, so users enter their ID/Password and hit <ENTER> instead of clicking on Login button. But when they hit <ENTER> an... -
Textbox, button and Enter on keyboard
Question (using C# and ASP.NET), I have a textbox and a buttonClick on my asp.net page. I would like be able to hit the Enter button on the... -
Steve C. Orr, MCSD #2
Re: How to control enter button on the client PC in ASP.Net
You can intercept the client side enter keypress event of the text box and
then click the correct button using javascript code.
Here's a good example:
[url]http://www.kamp-hansen.dk/pages/showdoc.asp?id=28&menuid=21&menuid=18[/url]
You could also try using this free control.
[url]http://www.metabuilders.com/tools/DefaultButtons.aspx[/url]
And here's a good article on the subject:
[url]http://www.allasp.net/enterkey.aspx[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Simon Fainveits" <sfainveits@rtg.com.au> wrote in message
news:025401c35fab$740c5f00$a601280a@phx.gbl...> Does anybody know how to control enter button on the web
> form? It seems to if the user hits enter button at run
> time then it fires submit button click event. I have also
> noticed that if the page does not have a submit button
> then the button that was first placed on the form at
> design time is fired and I do not want that to happen. Is
> there any way to control enter button behaviour?
> Many thanks
> Simon
Steve C. Orr, MCSD Guest



Reply With Quote

