Recommended: Interpreting a mistake that is easy to make when learning ASP programming In ASP programming, identity authentication can be said to be often used. But how can we achieve authentication security? Form submission page: sub.htm The following is the referenced content:
The following is the quoted content: Asp skills to determine whether the remote picture exists [ASP code] function CheckURL(byval A_strUrl) set XMLHTTP = Server.CreateObject(Microsoft.XMLHTTP) XMLHTTP.open HEAD,A_strUrl,false XMLHTTP.send() CheckURL=(XMLHTTP.status=200) set XMLHTTP = nothing end function Dim imgurl imgurl=UploadFiles/2007829144940734.gif if CheckURL(imgurl) then response.write picture exists else response.write picture does not exist end if Determine whether the remote image exists [js code] { var oReq = new ActiveXObject(Microsoft.XMLHTTP) oReq.open(Get,UploadFiles/2007829144941621.gif,false); oReq.send(); //alert(oReq.status) if(oReq.status==404) alert('not exists'); else alert(exist) } |
Share: Talking about the tree directory of DHTML XML ASP CSS Tree directory display program problem description: Self-associated data tables often appear in our projects. If we look at them from the overall perspective, the entire table is presented as a tree data structure (for complex cases, it may become a graph. ). When we do this table