ASP.NET中Server与Request对象的方法
Server 對(duì)象的方法:
 UrlEncode(ByVal String As String)As String 將URL字符串編碼
 UrlDecode(ByVal String As String)As String 將編碼后的URL字符串解碼
 MapPath(ByVal path As String)As String MaDPath 取得文件的實(shí)際路徑
 HtmlEncode(ByVal String As String)As StringHtmlEncode 將字符串編碼為HTML數(shù)據(jù)
 HtmlDecode(ByVal String As String)As String HtmlDecode 將HTML編碼后的數(shù)據(jù)解碼還原為HTML
Request 對(duì)象的屬性
UserLanguages 客戶端主機(jī)所使用的語(yǔ)言
UserHostName 客戶端主機(jī)的DNS名稱
userHostArrress 客戶端主機(jī)的IP地址
UserAgent 客戶端瀏覽器版本
Url 當(dāng)前要求的URL
TotalBytes 當(dāng)前輸入的容量大小
ServerVariables 網(wǎng)頁(yè)的Server變量
RequestType 客戶端網(wǎng)頁(yè)的傳送方式(Get/Post)
RawUrl 當(dāng)前頁(yè)面的U『RL
QueryString 瀏覽器地址欄后的參數(shù)
PhysicalPath 當(dāng)前網(wǎng)頁(yè)在服務(wù)器端的實(shí)際路徑
PhysicalApplicationPath 當(dāng)前在服務(wù)器端執(zhí)行的程序的實(shí)際路徑
Pathq 當(dāng)前網(wǎng)頁(yè)的相對(duì)地址
Params 返回QueryString、Form、Cookies、ServerVariables的全部集合
IsSecureConnection 目前聯(lián)機(jī)的安全性
IsAuthenticated 目前聯(lián)機(jī)是否有效
HttpMethod 目前客戶端網(wǎng)頁(yè)的傳送方式(Get/Post)
Headers 網(wǎng)頁(yè)的標(biāo)題集合
Form 窗體變量
Files 客戶端上傳的文件
FilePath 當(dāng)前執(zhí)行網(wǎng)頁(yè)的相對(duì)地址
Cookies HttpCookieCollection對(duì)象集合
ContentType 當(dāng)前需求的MIME內(nèi)容類型
ContentEncoding 客戶端瀏覽器的字符設(shè)置 -
ConnectionlD 客戶端所提出的網(wǎng)頁(yè)瀏覽請(qǐng)求的聯(lián)機(jī)的ID
ClientCertificate 客戶端安全認(rèn)證信息
Browser 客戶端瀏覽器的信息
AnnlicationPath 當(dāng)前運(yùn)行程序的服務(wù)器端虛擬目錄
轉(zhuǎn)載于:https://www.cnblogs.com/leeolevis/archive/2009/02/03/1383114.html
總結(jié)
以上是生活随笔為你收集整理的ASP.NET中Server与Request对象的方法的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 整合SharePoint MOSS 和S
- 下一篇: URL重写后,在有页面回发时的处理
