generic class to show dynamic table data
Hi, I am hoping to create a web page will will let user update a database table from selection of tables (dropdownlist). So the table name is dynamic.
I have written the stored procedure which will return the column name, datatype, length. for an input table.
I would like to create a generic class using these properties. So for example for "Table1" with and col1 (int) and col2(char 10) it would create a class to match, but if user chooses a different table a different class would be created.
Once the class is created it will be filled from db select and displayed on a grid etc.
Are there any examples of how to use generic classes like this?