I have developed a small form with 3 input type = text and one input type = submit button. The end user fills the form and submit it, but no data inserted into backend List. (probably empty form is submitted). I get to know that Javascript is disabled on user's browser. Now i want to do server side validation. How i validate my form on server side? I need a piece of code to validate form on server side (code behinde) ? I need code in asp.net

  • 2
    How is this related to SharePoint? Are you referring to a List form or Application page, Web part?? Jan 12, 2013 at 19:02
  • yes, i am using SP list for storing data and i am working on application page
    – SPBeginer
    Jan 13, 2013 at 11:49

1 Answer 1


In your button click method try calling



Page.Validate("[Name of validation group]") 

and then:

if(Page.IsValid) {
    //Go ahead and submit your data to SharePoint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.