使用的语言:asp.net、C#、access.
在网站的数据库里是:http://www.baidu.com。
然后想在浏览器里实现<iframe src=http://www.baidu.com width=50px height=60px></iframe>
应该怎么实现呢?求高手给个实例啊谢谢了
string html_tittle = http://www.baidu.com;
Label3.Text = Server.HtmlEncode("<iframe src=" + html_tittle + " width=50px height=60px></iframe>");
但是结果还是文本输出,求帮忙一下
在网站的数据库里是:http://www.baidu.com。
然后想在浏览器里实现<iframe src=http://www.baidu.com width=50px height=60px></iframe>
应该怎么实现呢?求高手给个实例啊谢谢了
string html_tittle = http://www.baidu.com;
Label3.Text = Server.HtmlEncode("<iframe src=" + html_tittle + " width=50px height=60px></iframe>");
但是结果还是文本输出,求帮忙一下
Response.Write("<iframe src=" + html_tittle + " width=50px height=60px></iframe>");
已测试
public string ss = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ss =@"<iframe src='http://www.baidu.com' width=50px height=60px></iframe>"; }
}
前台直接绑定
<%Response.Write(ss);%>