Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set a default button in asp

Status
Not open for further replies.

Kingkumar

Programmer
Jan 21, 2003
167
US
Hi ,
I was wondering if its possible to set a default button in asp to be precise what i want is that if the user hits enter button anywhere on the page this default button click event should take place
Thanks.
--King
 
ASP is a server side script...if you something like default button or user click events you need to use client side scripts...like Javascript or VBScript

-L
 
you mean to say that for a button click event i should write the script (function) which would capture the key press (enter )

--King
 
More precisely he meant that ASP doesn't really have much of anything to do with client-side button events and etc. I would suggest looking into the TabIndex attribute which may possibly handle this or look into using a form (I can't remember if enter clicks the submit button or just acts like a Submit() but ether way you can capture it in client-side script).

-T

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top