Wrox Programmer Forums
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 14th, 2004, 06:08 PM
Registered User
Join Date: Mar 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validating users

I created a login page by creating two textboxes (txtUsername) (txtPassword) and a command button (cmdLogin).

I want to validate that the username and password that the user types in the two textboxes are valid by running a query on the back end SQL 2000 database which contains this information.

I already have a stored procedure which contains the usernames and passwords (sp_Login).

How would I go about writining the code to validate this.

Thanks in advance

Old March 16th, 2004, 01:00 PM
planoie's Avatar
Friend of Wrox
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

You need to have button that calls the stored procedure via a database connection.

There's a lot to that answer, but before I go into all that, please tell us what parts of it you don't understand or aren't sure how to do.

Similar Threads
Thread Thread Starter Forum Replies Last Post
datagridview validating heathweiss Pro Visual Basic 2005 0 September 18th, 2007 07:01 PM
Validating users hcusto ASP.NET 2.0 Professional 3 August 10th, 2006 03:25 AM
validating emails.... muskaanbajaj ASP.NET 1.0 and 1.1 Basics 3 October 13th, 2005 05:37 AM
Validating a filespec levinll VB How-To 1 October 27th, 2004 10:26 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.