i have a textbox in asp.net form…. if i entered numbers not like 7 or 8 or 9, then script function should be araised with alert message…. how to achieve this…. that 7 or 8 or 9 are first digits in my texbox…
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.
UPDATE:
Better solution is usage of RegexValidator with Regex
/^[7-9]/or something like that.It will generate javascript code automatically