validation controls

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • satyabhaskar
    New Member
    • Dec 2008
    • 32

    validation controls

    hi all,,
    actually im preparing a web page which consists of three text boxes and i want to validate the text boxes before i submit the page.
    my problem is if user gives value in any of the three text boxes it should accept.ie the page should be submitted... it should not say the other two text box values are required... can any one solve my problem....

    thanks
  • amirghaffarie1362
    New Member
    • Jan 2009
    • 19

    #2
    use this code under bottun click :
    Code:
    if textbox1.text <> "" or textbox2.text <> "" or text3.text <> "" then 
      'sumbit form
    end if

    Comment

    • satyabhaskar
      New Member
      • Dec 2008
      • 32

      #3
      hi boss thanks for reply,..so its not possible to do this with validation controls.??

      Comment

      • amirghaffarie1362
        New Member
        • Jan 2009
        • 19

        #4
        i donno i never use validation control ,

        Comment

        • orked
          New Member
          • Jan 2009
          • 49

          #5
          hi
          if you want to make message to tell user what he must write in this text box ,if he write wrong value in text box.
          in c# ,go to tool box ,you will find list called validation chose from this list(required field validartor) and go to properties of this control and write the message that will appear to user in(error message) ,then write text in(text),write the name of text box in(control to validate)

          Comment

          • PRR
            Recognized Expert Contributor
            • Dec 2007
            • 750

            #6
            Originally posted by satyabhaskar
            hi all,,
            actually im preparing a web page which consists of three text boxes and i want to validate the text boxes before i submit the page.
            my problem is if user gives value in any of the three text boxes it should accept.ie the page should be submitted... it should not say the other two text box values are required... can any one solve my problem....

            thanks
            Check this Validators
            MSDN
            You could also use Filtered textbox

            Comment

            Working...