2011-02-11 95 views
0

我在网站中有一个iframe,我想添加一个特定的文本到url ..但我想知道我如何能够响应网址网站.. How can I add <%=%>到URL, 荫使用形式,应该怎么能够返回的URLASP.NET在asp页面内容的变化

例如

<iframe src="http://www.facebook.com/plugins/like.php?href=<% %> &amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> 

回答

0

实现最简单的方法是建立运行时的iframe html标签,然后将其添加到像Literal这样的控件中。有更多的方法,但我认为这是你最好的方式。

希望它可以帮助

+0

这不是我问的,我想knwo如何 – Tim 2011-02-11 20:26:33