var _url = "http://localhost:58890/DataService.svc/Mst_User?$filter=Us_Name eq '" + LoginPage.currentUser.UserName() + "' and Us_Password eq'" + LoginPage.currentUser.Password() + "'&$format=json"; $.ajax({ type: "GET", url: _url, timeout: 10000, async: true, dataType: "json", contentType: "application/jsonp; charset=utf-8", success: function (data) { //How to check here if Us_Admin=1 then Navigate //Else //Show error } });
if(data.Us_Admin == 1) { window.location.href = "home.html"; } else { alert("Error"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)