HI
Now some kidding with a small and easy javascript stuff.
Set The Default Enter button on any textbox when we press the Enter
// this.txtusername.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + imgbtnlogin.UniqueID + "').click();return false;}} else {return true}; "); this.txtpwd.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + imgbtnlogin.UniqueID + "').click();return false;}} else {return true}; "); this.imgbtnlogin.Attributes.Add("onkeydown", "if(event.which || event.keyCode){if ((event.which == 13) || (event.keyCode == 13)) {document.getElementById('" + imgbtnlogin.UniqueID + "').click();return false;}} else {return true}; ");
Sanjeev Kumar
No comments:
Post a Comment