C# 从代码隐藏关闭引导模式
我有这个问题 我有一个带有templatefield的gridview,其中有一个按钮,可以从js打开一个模式。这里一切都好 现在,当我按下模式中的OK按钮,即asp按钮时,我需要模式关闭并在代码隐藏中执行流程,但出现流程正常但模式未关闭的情况 这在按钮OK的代码后面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
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>