I have a problem with saving data. I have a tabstrip that is set to AutoPostBack and a Multipage set to RenderSelectedPageOnly.
I have a datalist on the first tab, and a datalist on the second tab.
When I "Save" the data, I iterate through the first datalist (each item in the list) which is always rendered because it is on the first tab, then I iterate through each item in the second datalist which is on the second tab.
The problem is that if the user has not clicked on the second tab, the second datalist is not fully rendered somehow, so no items are collected and saved.
There is a little more detail. Obviously, if the user clicks on the second tab for the very first time, all the data is saved. It is only when the user opens the page again to edit, and never clicks on the second tab.
What I need to know is:
What is the best way to tell if the datalist on the second tab has been fully rendered? Or do I have to keep up with what tabs are clicked? I had rather just skip the routine to save the data on the second datalist if I could only tell if it was not there or rendered fully.
Thanks,
~bg
I have a datalist on the first tab, and a datalist on the second tab.
When I "Save" the data, I iterate through the first datalist (each item in the list) which is always rendered because it is on the first tab, then I iterate through each item in the second datalist which is on the second tab.
The problem is that if the user has not clicked on the second tab, the second datalist is not fully rendered somehow, so no items are collected and saved.
There is a little more detail. Obviously, if the user clicks on the second tab for the very first time, all the data is saved. It is only when the user opens the page again to edit, and never clicks on the second tab.
What I need to know is:
What is the best way to tell if the datalist on the second tab has been fully rendered? Or do I have to keep up with what tabs are clicked? I had rather just skip the routine to save the data on the second datalist if I could only tell if it was not there or rendered fully.
Thanks,
~bg