We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Web Forms 4.5 - Repeater.Items is empty on Postback

Thread ID:

Created:

Updated:

Platform:

Replies:

130363 May 8,2017 10:55 PM May 9,2017 06:35 AM ASP.NET Web Forms 1
loading
Tags: General
webico
Asked On May 8, 2017 10:55 PM



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?

Prince Oliver [Syncfusion]
Replied On May 9, 2017 06:35 AM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;