protected void Page_Init(object sender, EventArgs e)
{
TextBox1.Attributes.Add("onkeydown","if(event.which event.keyCode){if (event.keyCode == 13) return false;}");
}
{
TextBox1.Attributes.Add("onkeydown","if(event.which event.keyCode){if (event.keyCode == 13) return false;}");
}
No comments:
Post a Comment