need guide in using asp to connect & get data from sql server 2000 , im very new to .asp and im trying to make a login
i have ajax that send data
$('#loginID').click(function(){
var userID = $("#userId").val();
var passID = $("#passwordId").val();
$.ajax({
type: "GET",
url: "http://103.29.214.230:82/smscenter/login.asp",
data: {
username: userID,
password: passID,
},
success: function (response) {
console.log(response);
}
});
});
the idea is to get a response from the login.asp (echo data;) which later i will json it and return it, but im confuse how will i fetch this data using the .asp
saw this example http://www.w3schools.com/aspnet/showaspx.asp?filename=demo_dbconn_repeater
how should i modify that scirpt to call my db server something like
dim con, Rs
set con=server.CreateObject("adodb.connection")
con.Open "Provider=sqloledb;SERVER=localhost;DATABASE=database_name;UID=login_ID ;PWD=login_password;"
set Rs=server.CreateObject("adodb.recordset")
any example/guide will be appreciated
EDIT modify my script in this link How to get the return value .asp to ajax