response redirect from .ashx file

Ballon picture Ballon · Jan 12, 2010 · Viewed 18.8k times · Source

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

Answer

Vitaliy Liptchinsky picture Vitaliy Liptchinsky · Jan 12, 2010
void ProcessRequest(HttpContext context)
{
     context.Response.Redirect(newUrl);
}