Advertisement

11.23.2007 at 04:01AM PST, ID: 22978781
[x]
Attachment Details

execute query on sql server in asp.net using vb.net 2005

Asked by ljhodgett in Visual Studio .NET 2005, Programming for ASP.NET

Tags: query, sql, execute, server, using

Hi,

I am currently getting into asp.net. I have a form with 2 .net text boxes one being txtuser and the other being txtpassword. What I am trying to do is query the database to see if the password is correct. The sql statment I would use is:-

"SELECT * FROM Users where username = " & txtUsername.text

The connectionstring is contained within web.config called conn.

I would appreciate your help please.

Many Thanks
LeeStart Free Trial
[+][-]11.23.2007 at 04:07AM PST, ID: 20338402

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.23.2007 at 04:07AM PST, ID: 20338406

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, Programming for ASP.NET
Tags: query, sql, execute, server, using
Sign Up Now!
Solution Provided By: asvforce
Participating Experts: 3
Solution Grade: A
 
 
[+][-]11.24.2007 at 09:22AM PST, ID: 20343153

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628