Redirecting from asp.net web form to mvc 4

前端 未结 1 1285
南方客
南方客 2021-01-23 19:41

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

Re         


        
相关标签:
1条回答
  • 2021-01-23 19:57

    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

    0 讨论(0)
提交回复
热议问题