Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 处理完整个函数后,会出现ModalPoup窗口_C#_Asp.net_Scriptmanager_Modal Popup - Fatal编程技术网

C# 处理完整个函数后,会出现ModalPoup窗口

C# 处理完整个函数后,会出现ModalPoup窗口,c#,asp.net,scriptmanager,modal-popup,C#,Asp.net,Scriptmanager,Modal Popup,我有一个模式弹出窗口,我想显示在功能的开始。相反,它会在处理函数后出现 protected void RadListView1_SelectedIndexChanged(object sender, EventArgs e) { string script = "function f(){$find(\"" + DisclaimerAlertWindow.ClientID + "\").show(); Sys.Application.remove_load(f);

我有一个模式弹出窗口,我想显示在功能的开始。相反,它会在处理函数后出现

    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
}  

调用函数时,如何显示modalpoup?

该代码在服务器上运行。您需要在回发之前使用Javascript。如果这是Telerik Listview控件,我将如何在回发之前使用Javascript?它们应该具有客户端Javascript事件。