【发布时间】:2012-08-29 14:46:09
【问题描述】:
我有一个带有文本框和按钮的 asp.net 页面。单击按钮时,我打开一个弹出窗口并使用 iframe 在其中加载一个页面。我想将文本框的值作为查询字符串传递给 iframe 中的页面。我该怎么做?
我尝试像这样使用服务器端 iframe:
<iframe id="popupframe" runat="server" src="~/temp.aspx" width="100%" height="455">
</iframe>
但是 temp.aspx 不加载并给出 404。如果我在没有服务器端标记的情况下使用它
<iframe id="popupframe" src="../../../../temp.aspx" width="100%" height="455">
</iframe>
页面在 iframe 中加载,但我无法将文本框的值传递给 temp.aspx。请提出解决方案。谢谢
【问题讨论】:
标签: javascript jquery asp.net