推薦: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"]
新聞熱點
疑難解答