【发布时间】:2013-07-03 13:24:34
【问题描述】:
这就是我的模态弹出窗口的样子
<asp:TextBox ID="txtPatientID" AutoCompleteType="Disabled" runat="server" CssClass="csstextbox" Width="350px"></asp:TextBox>
<asp:Button ID="btnCheckPatientID" CssClass="cssbutton" runat="server" Text="Check" />
<asp:ModalPopupExtender ID="btnCheckPatientID_ModalPopupExtender" runat="server"
PopupControlID="panelCheckPatient" TargetControlID="btnCheckPatientID" BackgroundCssClass="modalbackground">
</asp:ModalPopupExtender>
<div class="modalpopup" id="panelCheckPatient" style="display: none">
<iframe id="iframeCheckPatient" runat="server" width="485px" src="Check_Patient.aspx"
height="485px" scrolling="auto"></iframe>
</div>
单击 btnCheckPatientID 我必须将 txtPatientID.Text 作为查询字符串传递给 Modalpopup(在 modalpopup 中加载 iframe)我该怎么做?
【问题讨论】:
-
您可以通过更改 iframe 的 src 来做到这一点,例如
"Check_Patient.aspx?id=123"
标签: asp.net ajax modalpopupextender