0
私はユーザーコントロール内にいくつかの更新パネルを持っています。更新パネルの1つは、jQuery UIダイアログで開くdivで囲まれています。UserControl Registerのクライアントパネルの更新パネル
ポストバックで、次のコードが画面に出力されないようなクライアントサイドスクリプトbuを登録してダイアログを閉じたいとします。
void EventEditControl_EventUpdated(object sender, EventArgs e)
{
BindGrid();
CloseDialog("dialog-form");
upGrid.Update();
}
private void CloseDialog(string dialogId)
{
string script = string.Format(@"closeDialog('{0}')", dialogId);
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), UniqueID, script, true);
}