[WebMethod]
public static string simple()
{
Home h = new Home();
h.logout();
return "dfdsf";
}
public void logout()
{
Response.Redirect(Config.Value("logout"));
}
client side code
$('#logout').on('click', function () {
console.log("dfsnhkjdfsj");
$.ajax({
type:"GET",
url: "Home.aspx/simple"
}).done(function () {
console.log("dfsds");
});
});
http://localhost:14605/Home.aspx/simple 404 (Not Found) it is showing that method is not found please help to clear