Prevent ASP textbox from accepting Enter key.

protected void TextBox1_Load(object sender, System.EventArgs e)
{
 TextBox1.Attributes.Add("onKeyPress", "return event.keyCode!=13");
}

No comments:

Post a Comment