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