Postback and Repeater

  • Thread starter Thread starter Peter Kirk
  • Start date Start date
P

Peter Kirk

Hi there

I have a repeater which I bind to an arraylist (and the list is displayed on
my page). The list is data fetched from a database.

During a postback from another control, for example from a dropdown on the
page, is the state (contents) of the repeater and arraylist maintained
(maybe the ViewState handles this?) ? Or do I need to re-populate the
arraylist and bind the data again to the repeater?

Thanks,
Peter
 
Hi,

Did you tried it?

Unless you create your Repeater in code it will kept its state


cheers,
 
Hi, thanks - yes I did try it.

And while it does work like I hoped and expected if I run it as a
"standalone" webpage, it does not work if I have my ascx running as part of
a CMS we are using.

I just wanted to build a body of evidence that the problem was not with my
code, but with the CMS.

Thanks,
Peter
 
Back
Top