I have one text box on that text box i am using required field validation.
If text box is empty then i want to show in the text box “Please enter some text”, and if something is in text box then i want to check that text box text is valid email id or not if not then i want to show inside text box “Please enter valid email id”
I have one text box on that text box i am using required field
Share
You can carry out the following using jQuery:
Or you could use out of the box .NET validation using the RequiredFieldValidator and RegularExpressionValidator.
Edit
Since the poster has stated client-side scripting cannot be used for validation, I’ve added server-side validation: