Computing.Net > Forums > Web Development > ASP.VB.net, login page

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP.VB.net, login page

Reply to Message Icon

Name: jester4281
Date: March 3, 2005 at 11:40:08 Pacific
OS: Windows XP
CPU/Ram: p4
Comment:

I have a web page with two textfields username and password and a button submit. My dataset is named DATASET007, in this I have a table labeled userinfo and there are two fields that corrispond to the names username and password.

How can I write the ASP.VB.Net to lookup the username and password and if correct go to my page main.asp

Thank you in advanced.

Ryan



Sponsored Link
Ads by Google

Response Number 1
Name: SN
Date: March 4, 2005 at 05:52:02 Pacific
Reply:

How is the dataset being filled? Usually you would query for records with the entered username and password and just check to see how many records are coming back.

If that's not possible, it's probably something like:

foreach(DataRow row in DATASET007.Tables["userinfo"].Rows)
{
  if (row["username"] == Request["username"] and row["password"] == Request["password"])
    Response.Redirect("main.asp");
}

You could probably do it with a dataset filter of some kind as well, but I'm too lasy to look it up.

Good luck,
-SN


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: ASP.VB.net, login page

Crystal Report in VB.NET www.computing.net/answers/webdevel/crystal-report-in-vbnet/3894.html

.net asp with CRW www.computing.net/answers/webdevel/net-asp-with-crw/1482.html

asp? automatic receipt www.computing.net/answers/webdevel/asp-automatic-receipt/971.html