The following code is what I\'ve been using to retrieve user information from a sql database.
string userName = LoginUser.UserName; strin
For DataSet you can check like this:
DataSet
if (ds.Tables[0].Rows.Count > 0)