J
Jeffrey Ah-Chong
Hi Guys
I have a repeater control that I have bound a dataview to. Added to that I
have a custom ItemTemplate (class) that I apply to the repeater. It works
right and displays my data according to my format. Everything is done
programmatically, that is creation of control, initialisation and adding
it to the RepeaterItem.
The problem is that once I add a control to the RepeaterItem, the page get
reloaded! That is processing restarts from the start! So for a dataset
that contains 15 records, the page gets processed around 140 times! I
believe this happens coz control state has changed from the previous call.
Plus I got a value gathered from a request.form statement that
understandably is obtained only on the first call.Using a static variable
caters for this problem.
Through my extensive search on the net i haven't seen any solution up til
now.
Can anyone explain to me what to do? I don't want any overhead on page
calls especially because i may have thousands of records to process!
Thanks
Jeff
I have a repeater control that I have bound a dataview to. Added to that I
have a custom ItemTemplate (class) that I apply to the repeater. It works
right and displays my data according to my format. Everything is done
programmatically, that is creation of control, initialisation and adding
it to the RepeaterItem.
The problem is that once I add a control to the RepeaterItem, the page get
reloaded! That is processing restarts from the start! So for a dataset
that contains 15 records, the page gets processed around 140 times! I
believe this happens coz control state has changed from the previous call.
Plus I got a value gathered from a request.form statement that
understandably is obtained only on the first call.Using a static variable
caters for this problem.
Through my extensive search on the net i haven't seen any solution up til
now.
Can anyone explain to me what to do? I don't want any overhead on page
calls especially because i may have thousands of records to process!
Thanks
Jeff