I have a site with some logic in an MVC project and other logic in an older webforms project.
Can I server.transfer from an mvc controller to a webforms page?
Or transfer in some other way?
I have a site with some logic in an MVC project and other logic in an older webforms project.
Can I server.transfer from an mvc controller to a webforms page?
Or transfer in some other way?
You can use Redirect() method on a controller (which returns RedirectResult) but this will cause the return of HTTP 301 and a roundtrip to the server to the new location.
There is no Server.Transfer direct equivalent in MVC.
You could have used Html.RenderAction in your view, but it will be a bit nasty and requires your other action to be in MVC.