我有一个模式弹出窗口,我想在函数开始时显示它。相反,它会在处理完函数后出现。
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?