|
-
Sep 5th, 2002, 04:28 AM
#1
Thread Starter
Member
Login with aspx
How do I create an interactive loginbox in which a user can fill his/her userid and password within an aspx.vb with an OK and Cancel button?
Second, how do I get the values form the ID/password box and validate which buton was clicked?
Thanx for the help...
Dozo
-
Sep 5th, 2002, 04:58 AM
#2
Addicted Member
Asp.net is just like vb.net so do exactly what you would do for vb.net.
Add 2 text boxes to the page and name then txtUserName and txtPassword. Add 2 buttons btnOK and btnCancel. Then doubleclick on the OK button to get into the click event for that button and add your code to validate (if you haven't used a validate control) and see if the details are in your database, i.e. passing txtUsername.text.tostring and txtpassword.text.tostring to the database. If you bring back a result then use Response.redirect to take the user to the next page or display an error if the details are incorrect.
Wind and waves resolves all problems.
-
Sep 5th, 2002, 05:40 AM
#3
Thread Starter
Member
but...
Thanx Cim,
but how do I use a popup form for this in vb code?
When the user clicks the button to go to the next page, I want to popup a username/password form with an OKCancel... like you see on many memberbased sites. Whenever they hit Cancel the redirection must go to an "Authorization needed page" and on OK the ID/Password must be validated with ADSI and/or SQL.
To be honest, this is all new to me...so please bear with me on this one.
Thanx in advance.
Dozo
-
Sep 5th, 2002, 07:15 AM
#4
Frenzied Member
For a pop up form, you have to use client side java script.
Dont gain the world and lose your soul
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|