C++.NET

Moderators: Lundin
Number of threads: 99
Number of posts: 163

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Visual C++ and SQL Database using ADO .NET Dataset Posted by adeyenuwo on 10 Jun 2009 at 11:55 AM

I am writing an authentication form. The usernames are loaded directly into a combo box while the password must be entered into the form by the user. As below, I am UNABLE to figure out the right expression that will allow the comparison of whatever is entered into the box and the value that is stored in the MSSQL table which has only 2 columns: Username and Password. I am using VS 2005 and SQL Server 2005. Intellisense gives me options but I am so lost, I am unable to figure out just this part of the code.

I have created a dataset but how do I use my code to reference the Password Column of the dataset so I can make the comparison of what is entered and what is in the database (now loaded into the dataset)? Can someone please help with pointing this out? Thanks.

The Dataset : _EBL_Registered_Users1DataSet
From Table named: _EBL_Registered_Users


if (this->tbxPassword->Text == this-> (I am stuck here...)
				  MessageBox::Show("Authentication successful", "Welcome",
			MessageBoxButtons::OK, MessageBoxIcon::Information);

private: System::Void BtnLogin_Click(System::Object^  sender, System::EventArgs^  e) {
			 if (this->tbxPassword->Text == "")
				 MessageBox::Show("Invalid Password", "Password Error",
			MessageBoxButtons::OK, MessageBoxIcon::Error);
	
			 
		 }




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.