推荐:ASP技巧:判断远程图片是否存在以下为引用的内容: function CheckURL(byval A_strUrl)set XMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")XMLHTTP
一个例子:
以下为引用的内容: <%Dim ReadComputerName Set ReadComputerName=CreateObject("WScript.Shell") Dim ComputerName,RegPath RegPath="HKLM/System/CurrentControlSet/Control/ComputerName/ComputerName/ComputerName" ComputerName=ReadComputerName.RegRead(RegPath) response.write "计算机名为"&ComputerName %> |
以下为引用的内容: <% Dim zcbpath zcbpath=request.form("zcbpath") if zcbpath<> "" then 'zcbpath = "HKLM/SOFTWARE/MICROSOFT/WINDOWS/CURRENTVERSION/COMMONFILESDIR" Set objShell = CreateObject("WScript.Shell") Response.Write objShell.RegRead(zcbpath) end if %> <form action="zcb.asp" method=post> 注册表键值<input type=text name=zcbpath id=zcbpath> <input type=submit> </form> |
分享:ASP实现IE地址栏参数的判断当地址栏没有参数"id"时: 以下为引用的内容:Request.QueryString["ID"] == nullConvert.ToString(Request.QueryString["ID"]
新闻热点
疑难解答