What is the most flexible way to produce a table of results without using a datagrid or a dataset?
Methods considered so far
1)If I use the code behind model would it be best to have a function that simply binds to an asp label? This means of course that all my tables will be wrapped in span tags.
2)I have seen code that says you can place something along the lines of <%# DisplayTable() %> in your aspx page where the code behind page contains a function whose return value can be converted to string. I have tried the above with a
test like this
Function DisplayTable() as String
DisplayTable = "<table><tr><td>Test</td></tr></table>"
End Function
but it did not display. Any thoughts?
Methods considered so far
1)If I use the code behind model would it be best to have a function that simply binds to an asp label? This means of course that all my tables will be wrapped in span tags.
2)I have seen code that says you can place something along the lines of <%# DisplayTable() %> in your aspx page where the code behind page contains a function whose return value can be converted to string. I have tried the above with a
test like this
Function DisplayTable() as String
DisplayTable = "<table><tr><td>Test</td></tr></table>"
End Function
but it did not display. Any thoughts?