Ask a questionAsk a question
 

Proposed AnswerServer side validation does not work

  • Friday, November 06, 2009 5:03 PMDieter Diependaele Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I'm building a wabsite where the user has to fill in an extended form, the form holds 5 steps and with every push off the next-button, the user sees the next-page inside the same control (panels made (in)visible).

    I am using the .Net RequiredFieldValidator and an customized dropdownvalidator derived from basevalidator.

    When I turn off Javascript the form does not validate anymore. so the client-side validation works, but when I call for the Page.IsValid it just returns true. This means server side won't validate, I also tried calling Validate() on a specific validator (through Control.findControl(id))). and alltough he returns the correct validator, and the initialvalue is an empty string. after getting his .IsValid prop, the value is still true, it is allready true before I call the validate method.
    • Moved byDavid M MortonMVPFriday, November 06, 2009 5:05 PMASP.NET Questions should be asked at the ASP.NET Forums at http://forums.asp.net/. They're off-topic here. (From:.NET Base Class Library)
    •  

All Replies