Dataset question
From: Keith Smith (keithsmith3_at_verizon.net)
Date: 01/31/05
- Next message: cody: "Re: string syntax"
- Previous message: Willy Denoyette [MVP]: "Re: server gs vs workstation gs"
- Next in thread: Anders Norås: "Re: Dataset question"
- Reply: Anders Norås: "Re: Dataset question"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Dataset question"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 31 Jan 2005 13:30:41 GMT
For authentication purposes I query my Access database using a Username and
Password. If the dataset turns up empty then the user does not have access.
If it shows up with a value in the dataset then the user is authenticated.
The problem I am having is that when I count the number of entries in my
dataset it always shows up as "1". Even when I query the database with
values that aren't in the database.
I am using this code...
int RecordCount=dtSet.Tables.Count;
Is there a better way to count the entries in a dataset? Or perhaps a
better way of authentication all together?
- Next message: cody: "Re: string syntax"
- Previous message: Willy Denoyette [MVP]: "Re: server gs vs workstation gs"
- Next in thread: Anders Norås: "Re: Dataset question"
- Reply: Anders Norås: "Re: Dataset question"
- Reply: Ignacio Machin \( .NET/ C# MVP \): "Re: Dataset question"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|