Last post Jun 30, 2005 05:59 PM by lb17
Jun 30, 2005 05:59 PM|lb17|LINK
There is a legacy system that I am trying to add functionality. Bascially, the user selects a whole bunch of criteria and clicks a button and all kinds of processing takes place (in both the database, in app and also the ui) and the results appear in a nice
formatted grid on the page. The grid is interactive so that the user can "drilldown" to see child results.
Currently there is only one grid being processed at a time. The functionality I am trying to add is that when the user clicks the button, the results appear in a grid on a TAB - PAGEVIEW and there can be any number of tabs depending the different criteria
that has been selected.
Please let me know how to accomplish this. If you have another approach, it will be welcome.
Added tabstrip and multipage on base with no tabs/pageviews in hopes of dynamically generating tabs and pageviews on button click
Set up addTab and addPV methods in codebehind (as found on this forum and other sources) to be called on click of run button.
Put datagrid and code that generates data/formats the datagrid in UserControl passing in the criteria selected. I load control and add to page view in above methods.
Fixed bug and recompiled Tab.cs so that I no longer get that problem with TargetId and null pointer
This is fine for the first tab, my grid is on there and the tab says "tab1" or whatever. On every subsequent run click, I have the appropriate tabs, but no grids. I think that my postback is wiping out my usercontrols.
But since they are only added on click, how should I readd them in page_init or page_load... unless I store them in Session and then wouldn't there be other problems? What to do, what to do?
I cannot create these before hand and just show/hide because I won't have any idea of what the user has selected and as I said, this code is so tightly coupled it is hard to separate the datasource from the presentation. Ugh.
Thanks in advance.