It is "possible", but chances are if you are looking at this then you need a better data structure. The array suggestion is good.
One way to dynamically reference a property of an object:
System.Web.UI.DataBinder.Eval(yourobject, "rm1")
You could use a loop to construct the property name.
How about adding a literal control to your page, then using your asp to generate the table to a stringbuilder, then writing the stringbuilder to the literal?
Is the initial value of the column NULL? Or does Last_Break already contain a numeric value? What is the database and datatype?
(The SQL appears valid to me.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.