Code to not allow space in TextBox control

Amatya
Posted by Amatya under ASP.NET category on | Points: 40 | Views : 479
Code to not allow space in TextBox control

<input type="text" name="myText" onKeypress="if (event.keyCode == 32) event.returnValue = false;"/>


Thanks
Amatya

Comments or Responses

Login to post response