response redirect from .ashx file

后端 未结 3 1320
醉梦人生
醉梦人生 2020-12-18 21:11

I have ashx file and I want to redirect from ashx to aspx page. Some solution?

3条回答
  •  臣服心动
    2020-12-18 21:43

    Using context.Response.Redirect(newUrl); results in a page that says:

    "Object moved to here."

    Update: This happened because I signed out, in that case the answer is to use FormsAuthentication.RedirectToLoginPage();

提交回复
热议问题