I have a xmlHttpRequest like this in "mypage.html"
$(document).ready(function() {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("Get","GetData.asp");
xmlhttp.send();
alert(xmlhttp.responseText);
});My "GetData.asp" is like this:
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title></head><body><%
Dim test
Dim test_cmd
Dim test_numRows
Set test_cmd = Server.CreateObject ("ADODB.Command")
test_cmd.ActiveConnection = "dsn=SQLFP;uid=Something;pwd=somethingelse;"
test_cmd.CommandText = "{call dbo.sp_something}"
test_cmd.Prepared = true
Set test = test_cmd.Execute
Response.Write(test.GetString())
test.Close()
Response.End()
%></body></html>When I debug (F12 in Edge) I get "the server encountered an unexpected condition that prevented it from fulfilling the request"
Is something wrong in my code?