预览加载中,请您耐心等待几秒...
1/4
2/4
3/4
4/4

在线预览结束,喜欢就下载吧,查找使用更方便

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

privatevoidbtnBrowserCap_Click(objectsender,System.EventArgse) { //显示客户浏览器的能力信息 HttpBrowserCapabilitiesbc=Request.Browser; Response.Write("<br>客户浏览器信息:<br>"); Response.Write("-----------------------------------------------<br>"); Response.Write("浏览器类型:"+bc.Type+"<br>"); Response.Write("浏览器名称:"+bc.Browser+"<br>"); Response.Write("浏览器版本:"+bc.Version+"<br>"); Response.Write("&nbsp;&nbsp;主版本号:"+bc.MajorVersion+"<br>"); Response.Write("&nbsp;&nbsp;次版本号:"+bc.MinorVersion+"<br>"); Response.Write("客户平台:"+bc.Platform+"<br>"); Response.Write("测试版本?"+bc.Beta+"<br>"); Response.Write("AOL浏览器?"+bc.AOL+"<br>"); Response.Write("基于Win16?"+bc.Win16+"<br>"); Response.Write("基于Win32?"+bc.Win32+"<br>"); Response.Write("支持框架?"+bc.Frames+"<br>"); Response.Write("支持表格?"+bc.Tables+"<br>"); Response.Write("支持Cookie?"+bc.Cookies+"<br>"); Response.Write("支持VBScript?"+bc.VBScript+"<br>"); Response.Write("支持JavaScript?"+bc.JavaScript+"<br>"); Response.Write("支持JavaApplets?"+bc.JavaApplets+"<br>"); Response.Write("支持ActiveXControls?"+bc.ActiveXControls+"<br>"); Response.Write("支持CDF?"+bc.CDF+"<br>"); Response.Write("支持背景音乐?"+bc.BackgroundSounds+"<br>"); Response.Write("ECMA脚本版本:"+bc.EcmaScriptVersion+"<br>"); Response.Write("支持Java小应用程序?"+bc.JavaApplets+"<br>"); Response.Write("MSDOM版本:"+bc.MSDomVersion+"<br>"); Response.Write("W3CDOM版本:"+bc.W3CDomVersion+"<br>"); Response.Write("-------------------------------------------------<br>"); intlen=Request.ContentLength; Response.Write("内容长度:"+len+"<br>"); len=Request.TotalBytes; Response.Write("总长度:"+len+"<br>"); } //显示请求信息 privatevoidbtnRequest_Click(objectsender,System.EventArgse) { string[]mime_types=this.Request.AcceptTypes; this.Response.Write("客户浏览器接受的MIME类型:"); for(inti=0;i<mime_types.Length;i++) this.Response.Write(mime_types[i]+"&nbsp&nbsp"); Response.Write("<br>应用程序的虚拟根路径为:"+ Request.ApplicationPath+"<br>"); Response.Write("请求的文件路径:"+Request.FilePath+"<br>");