Hi all.
I have an ASP page, and wish to modify the appearance of a table depending on a variable.
Both tables are quite different in layout, so I though the easiest way would be to have two different include files, one for each table. Then, after I call the variable from the database, I could choose to inlcude the relevant file.
But can that be done? I know the include has to be in the html part and not enclosed in ASP tags.
Basically how can I do this:
If type="1" then include table1 else include table2
(not code, just the principle)
I could populate each cell of the table with ASP code to display one thing if type 1 and another if type 2 but that will be cumbersome to maintain, so I thought having two different tables would be a neat solution.
If I cannot do it with includes, how can I have two different tables and choose which one to display?
Thanks.
I have an ASP page, and wish to modify the appearance of a table depending on a variable.
Both tables are quite different in layout, so I though the easiest way would be to have two different include files, one for each table. Then, after I call the variable from the database, I could choose to inlcude the relevant file.
But can that be done? I know the include has to be in the html part and not enclosed in ASP tags.
Basically how can I do this:
If type="1" then include table1 else include table2
(not code, just the principle)
I could populate each cell of the table with ASP code to display one thing if type 1 and another if type 2 but that will be cumbersome to maintain, so I thought having two different tables would be a neat solution.
If I cannot do it with includes, how can I have two different tables and choose which one to display?
Thanks.