在Silver轻量级Web应用程序中获取客户端URL地址 [英] Get client URL address in Silver light web application
本文介绍了在Silver轻量级Web应用程序中获取客户端URL地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi Every Body
我想通过this.Request.URL.AbsoluteUri检测客户端浏览器URL。
我查了一下此方法获取客户端浏览器URL但我可以使用此方法的响应创建链接(标记a)。
我想使用此方法创建链接特定服务,因为我的Web应用程序可以在一些具有不同IP和地址的网络中访问。
< a href = <% this .Request.Url.AbsoluteUri.ToString();%> > 测试链接< / a >
如何解决这个问题?
解决方案
我使用变量来存储客户端IP地址后解决了我的问题。
Hi Every Body
I want to detect client browser URL by this.Request.URL.AbsoluteUri.
I checked and found that this method get client browser URL but I can create a link (tag a) with response of this method.
I want to use this method for create a link to specific services because my web application has accessible in some networks with different IP and Address.
<a href="<% this.Request.Url.AbsoluteUri.ToString();%>">Test link</a>
How I can solve this problem?
解决方案
I solved my problem by using a variable for storing client IP address after that I used this variable.
这篇关于在Silver轻量级Web应用程序中获取客户端URL地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文