create a javascript method and attach it with keydown event
check for event.Keycode if this is enter submit the form
How to Submit a Form Using JavaScript
http://www.javascript-code
Main Topics
Browse All TopicsHello and quick question. If I want to send the "Enter" Key on a web page in the WebBrowser control after the Enter Key is pressed. I have the code to capture the enter key, but I want to submit the form. I thought my focus should be set on the input text box; however, nothing is happening when I hit enter key. Should my focus be on something else? All I have is a label and a text box no button or submit button?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
create a javascript method and attach it with keydown event
check for event.Keycode if this is enter submit the form
How to Submit a Form Using JavaScript
http://www.javascript-code
Hello and quick question and forget my last post. I am using the wbBrowser.document.forms[0
i could not get
if possible provide your code
along with step by step process of what you want
what i understood is you have form with action attribute
you have 1 label and one input box
user enters some value in inputbox and presses enter
when enter is press you want some validation on input box if validation passes form must submit
m i right?
You are correct and here is what I have C# code below.
Now, when I type in on the web page into the Text box and hit enter the form submits, but does not seem to be performing the form action which is this:
action='javascript:ButtonC
Because no mater what enter in the text box it seems to not validate the field and submits the form.
However, if I am in IE and enter a value that should not be found a Window's alert box is displayed.
Is this something with me just invoking Submit on the form or is there something wrong with the web page?
Thanks man.
1 question do you want validation or not
if yes
then i suggest you to remove action attribute
instead of action attach javascript function with input box keydown event
like this
JavaScript onkeydown Event
http://www.w3schools.com/j
also u can do your validation like
Business Accounts
Answer for Membership
by: mo_cassimPosted on 2009-09-01 at 13:10:13ID: 25235460
see these links com/articl es/060805- 1.aspx 53952/3324 370.aspx
http://www.4guysfromrolla.
http://forums.asp.net/p/14
The second one will answer your question