如何显示不出浏览者的IP地址啊请帮小弟我看下代码错哪里了

怎么显示不出浏览者的IP地址啊,请帮我看下代码错哪里了?
想显示出浏览者的IP地址,请帮我看下代码错哪里了?应该怎么写?谢谢!
<asp:Label ID="Label1" runat="server" Text= Request.UserHostAddress;></asp:Label>

------解决方案--------------------
在后台写

Label1.Text=Request.UserHostAddress;
------解决方案--------------------
<a><%=Request.UserHostAddress %></a>

要不你要用2楼方法就别忘记了在page_load里面
Label1.DataBind()
------解决方案--------------------
HTML code
<asp:Label ID="Label1" runat="server" Text= '<%# Request.UserHostAddress %>'></asp:Label>

------解决方案--------------------
由于asp.net的机制 这样写是不行的 服务端控件在编译的时候是不认识这些表达式的 只能在后台绑定

Label1.Text=Request.UserHostAddress; 就好了 楼主

探讨

HTML code
<asp:Label ID="Label1" runat="server" Text= '<%# Request.UserHostAddress %>'></asp:Label>

C# code
protected void Page_Load(object sender, EventArgs e)
{
Label1.DataBind(……