Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. FORM method

FORM method

Scheduled Pinned Locked Moved Web Development
questionsysadminhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Amol Ravatale
    wrote on last edited by
    #1

    Hi, I am developing a web site in ASP. The problem is simple. In the Login page I am displaying two text box for UserID and password respectively. One Submit button and one reset button. Once User enters his ID and Password, User has to click the submit button. On the FORM's action method I am providing another asp page. But before request is send to server I want to valid the data entered in the text boxes when User clicks submit button. How can I do that? Every thing will come to you if you have faith.

    V G 2 Replies Last reply
    0
    • A Amol Ravatale

      Hi, I am developing a web site in ASP. The problem is simple. In the Login page I am displaying two text box for UserID and password respectively. One Submit button and one reset button. Once User enters his ID and Password, User has to click the submit button. On the FORM's action method I am providing another asp page. But before request is send to server I want to valid the data entered in the text boxes when User clicks submit button. How can I do that? Every thing will come to you if you have faith.

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      In doValidate(), since you have the form itself being passed as reference [note the this argument], you can validate the elements and return true/false as appropriate. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
      http://deepakvasudevan.blogspot.com/
      http://deepak.blogdrive.com/

      1 Reply Last reply
      0
      • A Amol Ravatale

        Hi, I am developing a web site in ASP. The problem is simple. In the Login page I am displaying two text box for UserID and password respectively. One Submit button and one reset button. Once User enters his ID and Password, User has to click the submit button. On the FORM's action method I am providing another asp page. But before request is send to server I want to valid the data entered in the text boxes when User clicks submit button. How can I do that? Every thing will come to you if you have faith.

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Here is an example on how to validate form data: Javascript : Validate form[^] --- b { font-weight: normal; }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups