문제

i am in a subfolder called "paypal" and im trying to redirect to my mvc page. I have tried these 3 ways The page I am trying to redirect form is a webform

Response.Redirect("../../SubscriptionView/Success/" + pdt.TransactionId.ToString());

Response.Redirect("../SubscriptionView/Success/" + pdt.TransactionId.ToString());

Response.Redirect("~/SubscriptionView/Success/" + pdt.TransactionId.ToString());

and keep getting

HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

... .com:80/paypal/subscriptionview/success/...

See how the redirect has not moved up from the paypal directory? What am I doing wrong?

도움이 되었습니까?

해결책

I figured out how to get it working.

 UrlHelper urlHelp = new UrlHelper(HttpContext.Current.Request.RequestContext);
                    response.Redirect(urlHelp.Action("PaymentError", "SubscriptionView", new { mailId = mailId }));

This returned me from the aspx page that i needed process the response from paypal back to my controller

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top