SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
How is this related to SharePoint? Are you referring to a List form or Application page, Web part?? – Marius Constantinescu - MVP Jan 12 '13 at 19:02
yes, i am using SP list for storing data and i am working on application page – SPBeginer Jan 13 '13 at 11:49
up vote 1 down vote accepted

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.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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