Web Forms 4.5 - Repeater.Items is empty on Postback



I have a Repeater which has it's data set up on Page_Load

protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
myRepeater.DataSource = data;
myRepeater.DataBind();
}
}
When I come to save my data on postback, myRepeater.Items contains zero elements when I know there are several.

Any suggestions as to what may be the issue?

1 Reply

PO Prince Oliver Syncfusion Team May 9, 2017 10:35 AM UTC

Hi Webico,  
  
Thank you for contacting Syncfusion support.  
  
We have prepared a sample demonstrating Repeater control. We are able to access the repeater items in post back. Kindly refer to the following link for the sample: http://www.syncfusion.com/downloads/support/forum/130363/ze/RepeaterSample-827696334 
  
Regards,  
Prince 


Loader.
Up arrow icon