I have a repeater, which is dynamically created on tab index change of AJAX tabcontainer. But, when I try to delete the item from the repeater, it doesn't fire the item command of the repeater.

Dynamically binding of repeater

public void bindControl()
{
           dset = GetWorklistItems();
            if (dset.Tables[0].Rows.Count != 0)
            {
                rpt_worklistitems.DataSource = dset;
                rpt_worklistitems.DataBind();
            }
 }
有帮助吗?

解决方案

Solved by using the following code:

If (Page.IsPostBack)
  return;
if (dset.Tables[0].Rows.Count != 0)
        {
            rpt_worklistitems.DataSource = dset;
            rpt_worklistitems.DataBind();
        }
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top