Server.MapPath() ./当前目录 /网站主目录 ../上层目录 ~/网站虚拟目录 如果当前的网站目录为E:\wwwroot 应用程序虚拟目录为E:\wwwroot\company 浏览的页面路径为E:\wwwroot\company\news\show.asp 在show.asp页面中使用 Server.MapPath(“./”) 返回路径为:E:\wwwroot\company\news Server.MapPath(“/”) 返回路径为:E:\wwwroot Server.MapPath(“../”) 返
Read more分类: ASP
asp网站建站技术
[asp] server.mappaht的用法-返回的目录说明
asp-sever.urlencode对应的一个解码函数 server.urldecode
asp这个变态的家伙,有sever.urlencode编码的,却没有对应的一个解码函数。。。网上搜索了一个urldecode解码函数,亲测可用 Function URLDecode(ByVal urlcode) Dim start,final,length,char,i,butf8,pass Dim leftstr,rightstr,finalstr Dim b0,b1,bx,blength,position,u,utf8 On Error Resume Next b0 = Array(192,224,240,248,252,254) urlcode = Replace(urlcode,”+”
Read more
asp这个变态的家伙,有sever.urlencode编码的,却没有对应的一个解码函数。。。网上搜索了一个urldecode解码函数,亲测可用 Function URLDecode(ByVal urlcode) Dim start,final,length,char,i,butf8,pass Dim leftstr,rightstr,finalstr Dim b0,b1,bx,blength,position,u,utf8 On Error Resume Next b0 = Array(192,224,240,248,252,254) urlcode = Replace(urlcode,”+”
Read moreasp怎么样设置文件为只读属性
Function LockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f.attributes 7 then f.attributes = 7 end if End Function Function UnLockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f
Read more
Function LockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f.attributes 7 then f.attributes = 7 end if End Function Function UnLockFile(strFileName) set fso = CreateObject(“Scripting.FileSystemObject”) set f = fso.GetFile(strFileName) if f
Read more