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不是重定向頁面