i have one text box ….if i type character how can i check it is characte in asp.net (application layer)
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For checking the text entered in a textbox, you might want to use the TextChanged event, which is triggered only after the textBox loses focus. You can hook it up either in javascript (client) or in code (server).
Another option is to have some validator to restrict the allowed characters. You might want to take a look at this article from MSDN: http://msdn.microsoft.com/en-us/library/ms998267.aspx (How To: Use Regular Expressions to Constrain Input in ASP.NET).