1、在Page_Load中中入以下代码
Code
for (int i = 0; i < GrdData.Rows.Count; i++)
{
PostBackTrigger trigger = new PostBackTrigger();
trigger.ControlID = GrdData.Rows[i].FindControl("DDLAnnex").UniqueID.ToString();
((UpdatePanel)Page.Controls[0].FindControl("UPnlGrd")).Triggers.Add(trigger);
}
2、增加函数
public override void VerifyRenderingInServerForm(Control control)
{
}