All Forums >> [Scripting] >> ASP.NET >> Dynamic tables... Best way of Conduct! Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Im working with this VB ASP.NET application and i just wanted some tip!
I am working a lot with tables that are filled with data from the database. Currently the solution is made in VBscript and using lots of loops and lots of "if" that then <td> and such statements and, just too much hard to understand, far to complex code. What is the best way to do this? It has got to exsist a simple solution?!
Depending on the users configuration, the tables will show a variaty of different column combinations. (The user chooses the columns to be viewed in the configuration.). Should i use views for this? This would result in far to many views to cover all combinations?
What do you mean the solution is made in VBScript? I thought you were using VB.NET? Are you using VBScript in the client browser? Why don't you just have the pages react to user column actions by executing a function on the server that executes an SQL binding query? I don't have any idea how your page is set up, but my thought was something like this:
Depending on user action, have a server side function that generates different table templates. I would think this should reduce the thought complexity involved.