我有一个模式弹出窗口,我想在功能的开头显示。相反,它在处理完函数后出现。
protected void RadListView1_SelectedIndexChanged(object sender, EventArgs e)
{
string script = "function f(){$find(\"" + DisclaimerAlertWindow.ClientID + "\").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "key", script, true);
// other business logic
}
如何在调用函数时显示modalpopup?