locked
How to work with validation controls if javascript disabled RRS feed

  • Question

  • User52625461 posted
    Hi All, Can anyone tell if i turn off the java script in any browser will validation controls will work and if yes then how to work by disabling the java script
    Thursday, March 24, 2011 2:14 PM

Answers

  • User1982642229 posted

    The validation controls should be able to perform both client side (if Javascript is enabled) and server side validation of the data. 

    If your controls are setup wirh CausesValidation true then you only have to check the Page.IsValid property.

    If your controls do not have the CausesValidation set to true you will have to call the Page.Validate method before checking the Page.IsValid proerty.

    Here is a link with an explanation:
    http://weblogs.asp.net/rajbk/archive/2007/03/15/page-isvalid-and-validate.aspx

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, March 24, 2011 2:46 PM