怎样把服务器端的值(字符窜)传递给客户端的iframe? 如题 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 test.aspx.cs:public string str="我是中国人";Response.write("document.frames("iframeName").document.all.lb1.value='"+ str +'")test.aspx里面包含的iframe,test1.aspx:<tr><td><asp:label id = lb1 runat=server> </asp:label></td></tr> 假设页面中的iframe如下:<iframe id=iframe1 runat=server></iframe>如上,先不设置它的src值,然后在服务端如下:id="xxx";this.iframe1.Attributes.Add("src","xxx.aspx?id=" + id);如此即可将参数传递给页面 如何将数据库数据绑定到li上。 大家帮忙解答下ASP.NET中母板页ContentPlaceHolder控件的问题 一个关于动态获取Label控件ID值的问题!(ASP.NET with C#).....在线等!... 在线等呀。。。。帮小弟呀。。高分呀! 这行代码啥意思啊? 这个问题很急,请各位帮忙! 我想让多个页面调用同一个连接,怎么实现啊? 如何控制ascx控件的执行时间? ASP自动发信我真的不明白!已经搞了一星期! asp.net 读出pdf文件内的文字等信息 在 repeater里给 服务器leble赋值 为什么会出现 指定的转换无效。 我做完的项目,有问题认真请教
public string str="我是中国人";
Response.write("document.frames("iframeName").document.all.lb1.value='"+ str +'")test.aspx里面包含的iframe,test1.aspx:
<tr><td><asp:label id = lb1 runat=server> </asp:label></td></tr>
<iframe id=iframe1 runat=server></iframe>
如上,先不设置它的src值,然后在服务端如下:
id="xxx";
this.iframe1.Attributes.Add("src","xxx.aspx?id=" + id);
如此即可将参数传递给页面