This is a rather simple question but I just don't know how it's done in an ideal way in ASP.NET/C#. Here's what I want to do:
1. On page load, execute a SQL query and read rows returned. (aspx.cs side)
2. Display the results and checkbox on each line. (aspx side)
3. User checks some/all lines and hits submit. (aspx side)
4. Loop thru the lines and process the checked lines. (aspx.cs side)
If it were PHP or something, I'd execute the SQL query, store the results into arrays, and then in HTML, loop thru the arrays to display with checkboxes and so forth.