After I execute this code asp scripts quite working.
<!-- #include file="Connection.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
function Page()
{
var db = new DBConnection;
this.DAL = db.retriveDAL("Content");
var url = new String(Request.ServerVariables("QUERY_STRING")), site = new String(Request.ServerVariables("QUERY_STRING"));
site = url.slice(4, url.indexOf(":80", 0)) + "/";
url = url.slice(url.indexOf("80", 0) + 2, url.length).split("/");
var pageName = url[1], pageID = url[2];
var xmlhttp = Server.CreateObject("Microsoft.XMLHTTP");
xmlhttp.open("POST", site+"library/Datastore.asp?page="+pageName + (pageID ? "id=" + pageID : ""), false);
xmlhttp.send();
var xml = Server.CreateObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(xmlhttp.responseText);
var xsl = Server.CreateObject("Microsoft.XMLDOM");
xsl.async = false;
xsl.load(Server.MapPath("templates/" + pageName + ".xsl"));
Response.Write(xml.transformNode(xsl));
}
%>
Does anybody know why? There is no reason for it now to work. It also disables any asp script in the website.
EDIT:
I just disabled the xmlhttp and re-created the sites and asp works fine.
EDIT 2:
I just discovered that the Server.Transfer is causing the endless runtime.
Any idea why?