J
jenemery
Unregistered / Unconfirmed
GUEST, unregistred user!
问题如下:
我有一个aspx文件
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server"><FONT face="宋体"><asp:Button id="Button1" runat="server" text="写 "></asp:Button></FONT>
</form>
<iframe id="dataframe" name="dataframe" style="Z-INDEX: 102;
LEFT: 15px;
WIDTH: 300px;
POSITION: absolute;
TOP: 50px;
HEIGHT: 241px" marginwidth="0" framespacing="0" marginheight="0" src="2.aspx" scrolling="no" frameBorder="2" vspace="0"></iframe>
</body>
现在的问题是我能不能按一下button,然后在iframe中显示我的这个字符串str?
Private Sub Button1_Click(sender As Object, e As EventArgs)
Dim str As String
str += "<table style='Z-INDEX: 108;
LEFT: 0px;
POSITION: absolute;
TOP: 0px;WIDTH:610px' border=1 cellspacing=0>"
str += "<tr><td width='50%' >" + 1.ToString.Trim + "&nbsp;</td><td width='50%' >" + 2.ToString.Trim + "&nbsp;</td></tr>"
str += "</table>"
End Sub
up者都又分。最好能提供点思路。
我有一个aspx文件
<body MS_POSITIONING="FlowLayout">
<form id="Form1" method="post" runat="server"><FONT face="宋体"><asp:Button id="Button1" runat="server" text="写 "></asp:Button></FONT>
</form>
<iframe id="dataframe" name="dataframe" style="Z-INDEX: 102;
LEFT: 15px;
WIDTH: 300px;
POSITION: absolute;
TOP: 50px;
HEIGHT: 241px" marginwidth="0" framespacing="0" marginheight="0" src="2.aspx" scrolling="no" frameBorder="2" vspace="0"></iframe>
</body>
现在的问题是我能不能按一下button,然后在iframe中显示我的这个字符串str?
Private Sub Button1_Click(sender As Object, e As EventArgs)
Dim str As String
str += "<table style='Z-INDEX: 108;
LEFT: 0px;
POSITION: absolute;
TOP: 0px;WIDTH:610px' border=1 cellspacing=0>"
str += "<tr><td width='50%' >" + 1.ToString.Trim + "&nbsp;</td><td width='50%' >" + 2.ToString.Trim + "&nbsp;</td></tr>"
str += "</table>"
End Sub
up者都又分。最好能提供点思路。