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. ASP.NET
  4. Ajax Validation with ASP.NET

Ajax Validation with ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasehelpquestion
5 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    Morgs Morgan
    wrote on last edited by
    #1

    Hey guys, The user is going to supply a userid, username and password. while the user writes the userid I want to check in the database if it exist and if it does, i will fill the username relating to that userid. I would like Ajax to help me with this, is there anyone who knows how this can be done? please help me :doh: Thanks guys.

    N M 2 Replies Last reply
    0
    • M Morgs Morgan

      Hey guys, The user is going to supply a userid, username and password. while the user writes the userid I want to check in the database if it exist and if it does, i will fill the username relating to that userid. I would like Ajax to help me with this, is there anyone who knows how this can be done? please help me :doh: Thanks guys.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      This is really a very simple task, what part are you having difficulties with? Show what you have so far or at least outline your ideas.


      I know the language. I've read a book. - _Madmatt

      M 1 Reply Last reply
      0
      • N Not Active

        This is really a very simple task, what part are you having difficulties with? Show what you have so far or at least outline your ideas.


        I know the language. I've read a book. - _Madmatt

        M Offline
        M Offline
        Morgs Morgan
        wrote on last edited by
        #3

        Thanks, I have three input boxs, userid, username and password, and a submit button. The user will enter userid in the input box, then I want to invoke the onblur="check()" event to check the userid entered with a value in the database and if it exist I will fill the username. My problem is the whole layout of Ajax, how I'm supposed to implement it, creating a '.js' file that will in the background call default.aspx to connect to the database. default.aspx will ofcourse use default.aspx.cs to connect to the database. Does this help you see what I am trying to do?

        N 1 Reply Last reply
        0
        • M Morgs Morgan

          Thanks, I have three input boxs, userid, username and password, and a submit button. The user will enter userid in the input box, then I want to invoke the onblur="check()" event to check the userid entered with a value in the database and if it exist I will fill the username. My problem is the whole layout of Ajax, how I'm supposed to implement it, creating a '.js' file that will in the background call default.aspx to connect to the database. default.aspx will ofcourse use default.aspx.cs to connect to the database. Does this help you see what I am trying to do?

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          You need to start here[^]


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          • M Morgs Morgan

            Hey guys, The user is going to supply a userid, username and password. while the user writes the userid I want to check in the database if it exist and if it does, i will fill the username relating to that userid. I would like Ajax to help me with this, is there anyone who knows how this can be done? please help me :doh: Thanks guys.

            M Offline
            M Offline
            mrMercury
            wrote on last edited by
            #5

            You could use ASP.NET AJAX for this, the easy way would be to use the UpdatePanel, the not so easy way would be to call a WebService or PageMethod to get the data and the use JavaScript and the DOM to show the new data to the user, as I said the WebService way is not as easy but is much faster and will give you better performance than the UpdatePanel, check this link[^] for samples and tutorials on WebServices, here’s[^] the ASP.NET AJAX site.

            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