Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Aug 18, 2010 09:14 PM|LINK
I have a data table that contains some values for Certifications. This table can be updated in a different part of my application. On the web page I am currently working on, I would like to have check boxes appear for every value in the data table. I
have been struggling with this trying to use a For Each loop and I cannot get it to work for anything. Any suggestions?
I am using the following Razor syntax to obtain my data (I know this works because I can display it in a WebGrid):
db = Database.Open("MyConn");
sql = "SELECT CertDesc FROM Certification ORDER BY CertDesc";
data = db.Query(sql);