Create a simple login in asp.net C#

5 pts.
Tags:
ASP.NET
C#
hi i m learning c# 2008 and i want to create a login that can access the username and password fields from the database and redirect to particular pages, after they are matched from their respective textboxes. So please tell me how should I use my connections and pass query?? Thanks.
ASKED: August 22, 2009  6:04 AM
UPDATED: January 23, 2010  7:56 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Read up <a href=”http://msdn.microsoft.com/en-us/library/system.data.sqlclient.aspx”>here</a>.

The particular object you will be using are:

<a href=”http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.aspx”>SqlConnection</a>
<a href=”http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspx”>SqlCommand</a>
<a href=”http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldatareader.aspx”>SqlDataReader</a>

All of them have an example at the bottom. If you aren’t using Sql Server, there are several other ADO object for connection to other database.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following