Retreive one row from DB
If I am retrieving many rows from a database I would use this.
foreach (DataRow row in ds.Tables["ErrorCodes"].Rows)
{
ErrorCodes.Items.Add(row["ID"].ToString());
}
How would I retrieve only one row of data without putting it in a foreach loop?
abcPosted Jun 3, 2004, 9:09 PM