0
$('#logout').on('click', function() {
console.log("clicked");
$.ajax({
type:"GET",
url: 'Home.aspx?method=simple'
}).done(function (data) {
console.log(data);
});
//PageMethods.simple();
});
public void simple()
{
Response.Clear();
Home h = new Home();
//h.logout();
Response.Write("some string");
Response.End();
}
public void logout()
{
Response.Redirect(Config.Value("logout"));
}
<add key="logout" value="http://localhost:52232/Account/Social" />
当我打电话从客户端服务器端方法,它返回整个页面没有进行重定向,请帮我 谢谢的Response.Redirect不是重定向页面