Results 1 to 4 of 4

Thread: Login with aspx

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Netherlands
    Posts
    39

    Talking 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

  2. #2
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2002
    Location
    Netherlands
    Posts
    39

    Unhappy 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

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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
  •  



Click Here to Expand Forum to Full Width