UserController objCont=new UserController();
DataTable dt = new DataTable();
//bind all values in dt
dt=objCont.GetAllRecords();
DataRow[] rows = dt.Select();
foreach (DataRow dr in rows)
{
string name= dr[“Name”];
}
UserController objCont=new UserController();
DataTable dt = new DataTable();
//bind all values in dt
dt=objCont.GetAllRecords();
DataRow[] rows = dt.Select();
foreach (DataRow dr in rows)
{
string name= dr[“Name”];
}