2010-01-12 2 views

답변

15
void ProcessRequest(HttpContext context) 
{ 
    context.Response.Redirect(newUrl); 
} 
0

;

"개체를 here (으)로 이동했습니다."라는 페이지가 표시됩니다.

업데이트 : 내가 서명했기 때문에이 문제가 발생했습니다.이 경우 응답은 FormsAuthentication.RedirectToLoginPage()를 사용하는 것입니다.

-1

가 나는 해결책을 발견하고는 잘 작동합니다 :

context.Response.ContentType = "text/plain"; 

if (controlcase) 
{ 
    //Write code, what you want... 

    context.Response.Write("This is result"); 
} 
else 
{ 
    context.Response.Write("<script>location.href='url you want to redirect'</script>"); 
}