日期:2014-05-17  浏览次数:20468 次

vs2008 母板页的内容页里iframe src无法显示
这是内容页,edit.html可以显示,但是TextBox1无法显示
  <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
  <div style="position:absolute; top: 0px; left: 2px; height: 463px; width: 683px;">
   
  <div id="ContentWin" style="width:590px; height:145px">
  <iframe src="edit.html?I=TextBox1&B=ContentBg" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:100%;width:100%"></iframe>
  </div>
  <input type="text" value="" name="ContentBg" size=106 
  style="height: 21px; width: 591px">
  <br />
  <div>
  <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
  <br />
  <asp:TextBox ID="TextBox1" runat="server" Height="68px" Width="590px">dfgdfg</asp:TextBox>
  <br />
  <asp:Button ID="Button1" runat="server" Text="Button" />
  </div>
  </div>
</asp:Content>

------解决方案--------------------
你写错了应该是
src="edit.html?I=<%=TextBox1.ClientID%>&B=ContentBg"

TextBox1的客户端id已经不是TextBox1了,