keypress event.
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
hi i want to add validation in my application. i have code if (Convert.ToBoolean(txtLogin.MaxLength = 10)) { TIPL.MsgBox.Show("Max length is 10"); } but i want this code on keypress event. then how to use this event.
Gayatri
onkeypress
is the JS event. Hook your event handler to this event. Put your code into a JS function and hook it withonkeypress
event. Something likeYourTextBox.Attributes.Add("onkeypress","YourJsFunction();")
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions