Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/334.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.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# 从代码隐藏关闭引导模式_C#_Twitter Bootstrap_Modal Dialog - Fatal编程技术网

C# 从代码隐藏关闭引导模式

C# 从代码隐藏关闭引导模式,c#,twitter-bootstrap,modal-dialog,C#,Twitter Bootstrap,Modal Dialog,我有这个问题 我有一个带有templatefield的gridview,其中有一个按钮,可以从js打开一个模式。这里一切都好 现在,当我按下模式中的OK按钮,即asp按钮时,我需要模式关闭并在代码隐藏中执行流程,但出现流程正常但模式未关闭的情况 这在按钮OK的代码后面 ScriptManager.RegisterStartupScript(this, this.GetType(), "HidePopup", "$('#modalpregunta').modal('h

我有这个问题

我有一个带有templatefield的gridview,其中有一个按钮,可以从js打开一个模式。这里一切都好

现在,当我按下模式中的OK按钮,即asp按钮时,我需要模式关闭并在代码隐藏中执行流程,但出现流程正常但模式未关闭的情况

这在按钮OK的代码后面

ScriptManager.RegisterStartupScript(this, this.GetType(), "HidePopup", "$('#modalpregunta').modal('hide')", true);
//Process to execute
这是我在updatepanel中看到的模式

<asp:UpdatePanel ID="UpdatePanel1" runat="server" ClientIDMode="Static" ChildrenAsTriggers="false" UpdateMode="Conditional">
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnConfirmarAccion" />
            </Triggers>