質問

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