Posted 16 Oct 2008
Link to this post
Thanks for the suggestion, but unfortunately, that is what I am doing, but if the control has not rendered, there are never any items to count. The control itself is there, it is instantiated, but not rendered. If I said that correctly?
What I have found as a workaround, is, I put a HiddenContol on the pageview that coresponds to the tab and set its value at "0". Since the tabstrip is autopostback, I set the hidden field to "1" if the tab is selected.
Then, when I go thru my routine to save the data, I check to see if the hidden control is set to 1, if so, I save the records.
What makes this unique is that (for the rest of the story), I'm really, deleteing all the records first, then saving them again. therefore, the records get deleted, but never saved again unless they clicked on the tab and actually rendered the control. Now, with the hidden control, I can delete the records and save them only if the hidden value is set to "1" for each corresponding tab.