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

Posted on 2011-04-20
Last Modified: 2012-05-11
what are the web.config settings that will disable (framework 3.5) page validations (required field, regex etc..validators are not working)
Question by:avanceconsulting
    LVL 3

    Accepted Solution

    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;

    Assisted Solution

    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;

    LVL 142

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now