I'm trying to get all records from a table and loop through it.
Pseudo Code:
database.dbDataContext db = new database.dbDataContext();
protected void Page_Load(object sender, EventArgs e)
{
List<database.User> data = db.Users.ToList();
// rows
for (int i = 0; i < data.Count; i++)
{
// columns
for (int j = 0; j < data[i].Count; j++)
{
}
}
}
I'm unsure about the syntax.
Anyone know how to do that?
Thanks in advance!
Usertable looks like?? What do you want to do with the data??