日期:2014-05-17 浏览次数:20637 次
var request;
function checkSession() {
request = new XMLHttpRequest();
request.open('GET', 'CheckSession.ashx');
request.onReadyStateChange = updatePage;
request.send();
}
function updatePage() {
if (request.readyState == 4) {
if (request.status == 200) {
var val = req.responseText;
var lblInfo = document.getElementById('lblInfo');
lblInfo.innerHTML = val;
}
}
}