DataClassesDataContext dataContext = new DataClassesDataContext();
DataTable dtEmployees = new DataTable();
var employees = from empTable in dataContext.Employees
select empTable;
foreach (Employee empRecord in employees)
{
Response.Write(empRecord.LoginID + "
");
}
dtEmployees = (DataTable)employees;
dgEmployeesList.DataSource = dtEmployees;
dgEmployeesList.DataBind();
No comments:
Post a Comment