在另一个页面中发布到iframe

时间:2010-12-23 19:15:52

标签: html post iframe

我正在努力为工作做点事情。

我有一个带文本框和按钮的起始页面。我希望能够将在文本框中输入的值发布到iframe,但iframe位于另一个名为iframeholder的网页上。

我不允许使用会话变量或查询字符串。它必须发布。

我想将TextBox_Link的值发送到iframe,并能够将其作为ListItem的值存储在RadioButtonList中。我非常感谢任何反馈。

起始页面

<body>  
<form id="form1" runat="server">  
<div>  
<table>  
<tr>  
<td><asp:TextBox ID="TextBox_Link" runat="server"></asp:TextBox></td>  
</tr>  
<tr>  
<td><asp:Button ID="Button_Post" runat="server" Text="Button" /></td>  
</tr>  
</table>  
</div>  
</form>

iframeholder页面

<body>
<form id="form1" runat="server">
<div>
<iframe src ="iframe.aspx" name="iframe" width="100%" height="300">
</div
</form>
</body>

IFRAME

<body>
       <form id="form1" runat="server">  
       <div>  
           <asp:RadioButtonList ID="RadioButtonList1" runat="server">  
               <asp:ListItem>Link1</asp:ListItem>  
           </asp:RadioButtonList>  
           <br />  
           <asp:Button ID="Button1" runat="server" Text="Submit" />  
       </div>  
       </form>  
   </body>

1 个答案:

答案 0 :(得分:0)

尝试在target='iframe'标记中添加<form>