Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Login Access Web Page using ASP.NET (VB)


Login Access Web Page using ASP.NET (VB)

Author
Message
Carol_Lai
Carol_Lai
Forum Member
Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)Forum Member (51 reputation)

Group: Forum Members
Posts: 1, Visits: 9
Hi,

I need to create a login access form using ASP.NET. The code i'm using is VB.NET. This access form has to link to my SQL Server database. I need to validate the username and password from the database and also the access right to either admin or user.

If username and password valid then
     If access right = "admin" then
     Response.Redirect ("admin.aspx")
     Else
     Response.Redirect ("user.aspx")
     End If
End If

How should i go about writing the code? The username input in the loginpage is also required for me to track the full name in my database and display it on the other webpage. Can anyone help me? Thank you very much

annaharris
annaharris
Forum God
Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)Forum God (788 reputation)

Group: Forum Members
Posts: 20, Visits: 21
Your code for validating user and admin for login rights looks fine to me. You can definitely use this code.
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search