您的位置:首页 > 编程语言 > ASP

ASP.NET中Server与Request对象的方法

2009-02-03 14:24 387 查看
Server 对象的方法:

UrlEncode(ByVal String As String)As String 将URL字符串编码

UrlDecode(ByVal String As String)As String 将编码后的URL字符串解码

MapPath(ByVal path As String)As String MaDPath 取得文件的实际路径

HtmlEncode(ByVal String As String)As StringHtmlEncode 将字符串编码为HTML数据

HtmlDecode(ByVal String As String)As String HtmlDecode 将HTML编码后的数据解码还原为HTML

Request 对象的属性

UserLanguages 客户端主机所使用的语言

  UserHostName 客户端主机的DNS名称

  userHostArrress 客户端主机的IP地址

  UserAgent 客户端浏览器版本

  Url 当前要求的URL

  TotalBytes 当前输入的容量大小

  ServerVariables 网页的Server变量

  RequestType 客户端网页的传送方式(Get/Post)

  RawUrl 当前页面的U『RL

  QueryString 浏览器地址栏后的参数

  PhysicalPath 当前网页在服务器端的实际路径

  PhysicalApplicationPath 当前在服务器端执行的程序的实际路径

  Pathq 当前网页的相对地址

  Params 返回QueryString、Form、Cookies、ServerVariables的全部集合

  IsSecureConnection 目前联机的安全性

  IsAuthenticated 目前联机是否有效

  HttpMethod 目前客户端网页的传送方式(Get/Post)

  Headers 网页的标题集合

  Form 窗体变量

  Files 客户端上传的文件

  FilePath 当前执行网页的相对地址

  Cookies HttpCookieCollection对象集合

  ContentType 当前需求的MIME内容类型

  ContentEncoding 客户端浏览器的字符设置 -

  ConnectionlD 客户端所提出的网页浏览请求的联机的ID

  ClientCertificate 客户端安全认证信息

  Browser 客户端浏览器的信息

  AnnlicationPath 当前运行程序的服务器端虚拟目录
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: