submit button...

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
 
R

RAB

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
 
S

Steve C. Orr [MVP, MCSD]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top