弹出页关闭时调用主页方法
主页[此为用户控件TaskItemList1]中:
this.lbtAddSubFlow.Attributes["onclick"] = "openDialog2(300,200,'SubFlowNew.aspx?id="
+ this.RequestID +"','no');__doPostBack('TaskItemList1$lbPostBack', '');return false;";
private void lbPostBack_Click(object sender, System.EventArgs e)
{
BindTaskData();
}
弹出页中:
this.btSave.Attributes["onclick"] = "window.returnValue='OK'; return true;";
this.lbtAddSubFlow.Attributes["onclick"] = "openDialog2(300,200,'SubFlowNew.aspx?id="
+ this.RequestID +"','no');__doPostBack('TaskItemList1$lbPostBack', '');return false;";
private void lbPostBack_Click(object sender, System.EventArgs e)
{
BindTaskData();
}
弹出页中:
this.btSave.Attributes["onclick"] = "window.returnValue='OK'; return true;";