Validators not working
-
Hi all, In my form i have a textbox field wherein the user needs to input his email address. All i need to do is make this field mandatory as well as i need to check it for correct format. For this purpose i have used a required field validator and a regular expression validator validating the same control. These validation fires well when the textbox lose focus but fails when i submit the form. I also checked my submit button for property causesvalidation=true . Any help would be highly apppreciated..
-
Hi all, In my form i have a textbox field wherein the user needs to input his email address. All i need to do is make this field mandatory as well as i need to check it for correct format. For this purpose i have used a required field validator and a regular expression validator validating the same control. These validation fires well when the textbox lose focus but fails when i submit the form. I also checked my submit button for property causesvalidation=true . Any help would be highly apppreciated..
Set VaidationGroup property to all validator ctntrols and submit button beSt rEgard pAthan
please don't forget to vote on the post that helped you.
-
Hi all, In my form i have a textbox field wherein the user needs to input his email address. All i need to do is make this field mandatory as well as i need to check it for correct format. For this purpose i have used a required field validator and a regular expression validator validating the same control. These validation fires well when the textbox lose focus but fails when i submit the form. I also checked my submit button for property causesvalidation=true . Any help would be highly apppreciated..
Another source of issues comes if you are using AJAX ASP .net, there is a workaround for this: http://weblogs.asp.net/scottgu/archive/2007/01/25/links-to-asp-net-ajax-1-0-resources-and-answers-to-some-common-questions.aspx[^]
/// ------------------------- Braulio Díez http://www.tipsdotnet.com /// -------------------------