httphandler で処理される ajax リクエストがあります
jQuery.ajax({ type: "GET", url: url, dataType: "text", complete: function (resp, status) {
if (status == "success" || status == "notmodified")
if (resp.responseText != "error")
window.location = resp.responseText;
}
});
ハンドラーがある
public class SocialNetworkUserLogin : IHttpHandler, IRequiresSessionState
{
public void ProcessRequest (HttpContext context)
{
context.Response.Clear();
context.Response.ClearHeaders();
context.Response.ClearContent();
context.Response.ContentType = "text/plain";
//verified something and
context.Session["UnregUser"] = null;
context.Response.Write(Config.SiteDomain + "/Registration.aspx");
}
}
resp.responseText の値を確認すると、サンプル localhost:2101/Registration.aspx の URL テキストではなく、Registration.aspx コンテンツが含まれています。