【发布时间】:2016-08-11 05:57:42
【问题描述】:
我在 ASP.NET 中有一个弹出窗口
在这个弹出窗口中,我有两个 div。
- 在第一个 div 中,正在加载一个子页面。
- 在 div 2 中,从同一页面加载了一个网格视图。
在 div One 中我有保存按钮,单击该按钮我需要从父页面代码更新 div 2 中的 gridview 以供参考:
对于第一个 div:
<div>
<input type="button" id="btnSave" value="Save" onclick="someevent" class="btn btn-primary btn-sm" />
</div>
对于 div 两个:
<div class="modal fade" id="transactionFieldMapping" tabindex="-1"
role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="width: 100%; height: 100%;">
<div class="modal-dialog" style="width: 68%; height: 75%;">
<div class="modal-content"
style="width: 60%; height: 95%;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="H1">
<asp:Label runat="server" ID="Label2" Text="">Data Dependency Mapping AT TestCase level</asp:Label></h4>
</div>
<div class="modal-body" style="width: 98%; height: 90%;">
<table width="100%" border="0">
</table>
<iframe width="100%" height="100%" id="IframetransactionFieldMapping" frameborder="0" runat="server">
</iframe>
</div>
</div>
</div>
</div>
Div ONE 代码将加载到 Div TWO 中可用的 I-Frame 中
现在点击 DIV ONE 中的保存,我需要在同一个弹出窗口中更新 div 2 中的网格视图。
我只是想要一个来自子页面的回发,该页面正在加载到模型内部的 I 框架中,但保持模式打开。
【问题讨论】:
-
实际上你的问题对我来说有点不清楚。你想要一个
postback来自你的模态但保持模态打开? -
是的,你没看错。我需要更新模型以使其保持打开状态。但是按钮是从不同的页面加载的,并且网格视图被添加到模型本身中。
标签: javascript c# jquery asp.net .net