Recommended: ASP tutorial: Asp production of common flash news pictures rotation code This is a normal web page file html head metahttp-equiv=Content-Typecontent=text/html;charset=gb2312/ title News and picture rotation/title/head body !--#Includefile=diaoyong.asp-- /body /html Any web page just call the following file (diaoyong.asp), and the f used
| <% FunctionurlChk(sUrl) onerrorresumenext SetxmlHttp=Server.CreateObject(Microsoft.XMLHTTP) xmlHttp.openGET,sUrl,false xmlHttp.send ifxmlHttp.Status<>200then urlChk=false else urlChk=true endif EndFunction sUrl=http://www.code-123.com ifurlChk(sUrl)then response.write(sUrl&(can be accessed normally!)) else response.write(sUrl&(page opening error!)) endif %> |
Share: How to use the asp program to handle the problem of the database being hung up After the database is hung up, many people don’t know how to deal with it, or the processing is incomplete, resulting in Trojans still appearing after the web page is opened. This article introduces a better solution for your reference. Step 1: Make backups for existing databases. Step 2: Execute the following ASP file to remove the JS Trojans in the database. (Note: conn.asp is omitted) 'Put in JS wood here