submit button...

  • Thread starter Thread starter RAB
  • Start date Start date
R

RAB

When creating a .aspx page with a form submit button, how do I get the
submit button to respond to a <enter> stroke on the keyboard?

Thanks,
RABMissouri
 
Steve,

Thanks for your reply. I looked at your free control but couldn't
figure out what files I needed to add to my project to get the control
to work to satisfy:
<%@ Register tagprefix="mbdb" namespace="MetaBuilders.WebControls"
Assembly="MetaBuilders.WebControls.DefaultButtons" %>

Certainly I don't need to add all of the files in the zipped folder to
my project?


Fortunately, I found a much simpler solution:

Place a hidden html textbox somewhere in the form.

<INPUT type="text" style="DISPLAY:none">

Then when you hit enter in the login field it should fire the login
button's click event. It works like a charm.


Thanks for your help
RABMissouri
 
I'm glad you found a solution that works for you.
Keep in mind that that solution may not work for other pages due to various
browser quirks so you may want to keep those links I gave you for future
reference.
 
Back
Top