ASP.NET 获取客户端访问端口
2013-06-10 12:43
381 查看
using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class _Default : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { System.Collections.Specialized.NameValueCollection coll = Request.ServerVariables; foreach (string key in coll.AllKeys) { foreach (string value in coll.GetValues(key)) { Response.Write(key + "------" + value + "<br/>"); } } string port = Request.ServerVariables["REMOTE_PORT"].ToString(); Response.Write(port); } }
相关文章推荐
- ASP.NET 获取客户端访问端口
- asp.net 获取客户端浏览器访问的IP地址
- Asp.net MVC获取访问系统的客户端计算机的主机名和IP地址
- asp.net 获取客户端浏览器访问的IP地址的实例代码
- 27.2.2 ASP/ASP.NET页面获取客户端证书的方法
- ASP.NET获取客户端的操作系统、浏览器、.NET版本等信
- ASP.NET 获取客户端IP地址
- 【ASP.NET 进阶】判断访问网站的客户端是PC还是手机
- asp.net获取客户端信息
- Asp.net Request方法获取客户端的信息
- asp.net中获取客户端ip地址的两种方法
- ASP.NET获取真正的客户端IP地址的6种方法
- asp.net 客户端控件变为服务端控件 Jquery 获取控件的 值
- 使用ASP.NET AJAX访问Script Method时启用客户端缓存
- ASP.NET获取客户端IP和MAC
- ASP.NET获取客户端及服务器的信息
- 【ASP.NET开发】获取客户端IP地址 via C#
- ASP.NET,C#获取客户端IP
- ASP.NET AJAX初学体验之客户端访问WebService(3)
- asp.net中, 如何在后台获取访问这个页面的用户的名字?