0

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?

Jakub Konecki
  • 45,581
  • 7
  • 87
  • 126
Nils
  • 1,237
  • 3
  • 11
  • 28

1 Answers1

0

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.

Jakub Konecki
  • 45,581
  • 7
  • 87
  • 126