Posted by: Vinit on: June 2, 2009
Basically we have the last Textbox for any web page.
Then we dont want to move the cursor position to the button,
this will work only with Internet Explorer…
Last we have the cursor control in the password textbox.
From there only if we want to Login to the next page .
For Ex, Like Below

We have to write below code,
In the page load event,
txtPassword.Attributes.Add(“onkeydown”, “if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById(‘” + btnSubmit.UniqueID + “‘).click();return false;}} else {return true}; “);
Vinit Patel.
July 3, 2009 at 6:08 am
nice its solve my prob.
July 22, 2009 at 1:04 pm
Thnks Man…