欢迎访问 生活随笔!

凯发k8官方网

当前位置: 凯发k8官方网 > 编程语言 > asp.net >内容正文

asp.net

asp.net中server与request对象的方法 -凯发k8官方网

发布时间:2024/10/8 asp.net 0 豆豆
凯发k8官方网 收集整理的这篇文章主要介绍了 asp.net中server与request对象的方法 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

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 当前运行程序的服务器端虚拟目录

转载于:https://www.cnblogs.com/leeolevis/archive/2009/02/03/1383114.html

总结

以上是凯发k8官方网为你收集整理的asp.net中server与request对象的方法的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得凯发k8官方网网站内容还不错,欢迎将凯发k8官方网推荐给好友。

网站地图