• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 588
  • Last Modified:

what are the web.config settings that will disable asp.net (framework 3.5) page validations (required field, regex etc..validators are not working)

what are the web.config settings that will disable asp.net (framework 3.5) page validations (required field, regex etc..validators are not working)
0
avanceconsulting
Asked:
avanceconsulting
2 Solutions
 
Mrugesh1Commented:
There is no such kind of setting in Web.Config.

You can disable it by writing below server code in page.
For example:-  RequiredFieldValidator1.EnableClientScript = false;
0
 
DMSutharCommented:
In Web.Config Page its not possible. There are several alternate ways as mentioned below:

On Submit Button, ControlName.CausesValidation = false;
On Page Load Event ValidatorControl.Enabled = false;

For. Exa ControlName: btnSubmit.CausesValidation = false;
RequiredFieldValidator1.Enabled = false;

Thanks.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now