string strcnn = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=test.mdb";
OleDbConnection cnn = new OleDbConnection(strcnn);
cnn.Open();
string reqet = "SELECT count(*) FROM login";
OleDbCommand cmd = new OleDbCommand(reqet, cnn);
int x = (int)cmd.ExecuteScalar();
if (x>0)
MessageBox.Show("login successfully");
else
MessageBox.Show("invalid username or pwd !");
cnn.Close();
Tuesday, 4 November 2014
winform login check from access database
Subscribe to:
Post Comments (Atom)
Working with 3- Tier Architecture in C#
Introduction In this article we will learn Use to 3- Tier architecture in C#.NET application. 3-Tier architecture is very famous and ...
-
Here I will describe how to show data in a nested DataGrid using C# Windows Forms. This is applicable to those cases where we need to ...
-
Introduction In this article we will learn Use to 3- Tier architecture in C#.NET application. 3-Tier architecture is very famous and ...
-
How to Bind Data to ComboBox from Database in Windows Form C#.Net. Step1 : First you need to design a table in Sql Database...
No comments:
Post a Comment