A
Andy Fish
Hi,
I have a repeater nested within a repeater. After databinding the outer
repeater, I loop through the items and databind the inner repeaters, also
setting the inner repeater's ItemCommand event handler at the same time.
I have disabled viewstate for performance reasons.
Now, say the user clicks a control on one of the inner repeaters which
causes a postback. I need to databind in the page_Load() because otherwise
the event handlers don't get set up. After processing the action (which
updates the database) I need to databind again to get the new values
displayed.
I guess DataBind is quite an expensive operation. Is there an easy way to
avoid having to do it twice in the same postback?
TIA
Andy
I have a repeater nested within a repeater. After databinding the outer
repeater, I loop through the items and databind the inner repeaters, also
setting the inner repeater's ItemCommand event handler at the same time.
I have disabled viewstate for performance reasons.
Now, say the user clicks a control on one of the inner repeaters which
causes a postback. I need to databind in the page_Load() because otherwise
the event handlers don't get set up. After processing the action (which
updates the database) I need to databind again to get the new values
displayed.
I guess DataBind is quite an expensive operation. Is there an easy way to
avoid having to do it twice in the same postback?
TIA
Andy