2
在我的表單中,我有一個listview
和一個panel
,它用作updatepanel
中的彈出窗口。關於模式彈出式擴展程序的部分渲染更新面板關閉
我使用modalpopupextender
在listview
ltemcommand
上動態創建彈出窗口。
這裏是我的代碼來打開彈出
protected void LstCreativeBin_ItemCommand(object sender, ListViewCommandEventArgs e)
{
switch (e.CommandName)
{
case "UploadFile":
ListViewDataItem currentItem = (ListViewDataItem)e.Item;
DataKey currentDataKey = LstCreativeBin.DataKeys[currentItem.DisplayIndex];
int contestid = Convert.ToInt32(currentDataKey["participantSlno"]);
IframeEdit.Attributes.Add("src", "Uploadfile.aspx?id=" + Convert.ToString(contestid));
ModalPopupExtender1.Show();
break;
}
}
我的問題是在頁面刷新,即使它是updatepanel
內。我已將LstCreativeBin_ItemCommand
添加到更新中的異步觸發器。
什麼這裏需要的是:
- 打開彈出異步。
- 刷新關閉彈出窗口的更新面板。