Champion Writers HomeBook ResourcesSubmissionCareerCompany InfoContact Us

Validation Control does not Work in Firefox?

Andy Zhang



When you develop your web application in C# or VB.Net, validation controls (some people call them validators) will give you a lot of functionalities without writing your own code to perform validation functions. For example, RegularExpressionValidator can help you validate email addresses with just a line of validation expression. You can also save time with other validation controls—RequiredFieldValidatior control, RangeValidator Control, CompareValidator Control, and CustomValidator Control.


If you test your application in IE and every validator control works, you should also test your application in Firefox. Well, did it work?


If your validation control does not work in Firefox, it is likely you need to change the setting in your web.config file.


Inside the system.web section. You should find xhtmlConformance element—it configures XHTML 1.0–conforming control rendering.


Change it from:


<xhtmlConformance mode="Legacy"/>


to:


<xhtmlConformance mode="Transitional"/>


Then restart your application. You should see the validation control works in Firefox now.


Terms of Use | Privacy Policy
TM & © 2007-2009 Champion Writers, Inc. All Rights Reserved.