Web Forms for MVC 5

Asked

Viewed 269 times

2

I joined a company, where we have an application running in Web Forms, and we are developing new applications with Asp.Net MVC. However, I was asked to complement an application with Web Forms, using MVC. Is there a possibility to do this type of integration? Or is it more feasible to redo the application in MVC?

Remembering that I need to use Forms Web authentication if I integrate both solutions.

1 answer

1


Is there a possibility to do this type of integration? Or is it more feasible to redo the application in MVC?

No, because the requisition handling architecture is completely different.

Rewriting the application can be very costly, but yes, it is feasible. I was hired for six months by a company to rewrite a Web Forms application without formal data layer in ASP.NET MVC 5 + Entity Framework.

Remembering that I need to use Forms Web authentication if I integrate both solutions.

Legacy authentication can be used freely on the MVC. I gave some answers teaching how to do various types of authentication, incidentally.

  • Thank you for the answer. I had already imagined this, I just wanted a second opinion, to have basis in explaining to my superiors.

  • You can argue further about the route engine, the ability of an MVC application to respond as JSON (partially REST or entirely, using Web API), and so on. There are so many differences that it is not worth spending time investing in Web Forms.

  • Just one more question, you commented on "legacy authentication". use the same authentication and such. But I can’t take the data of a logged-in user in a Web Forms application and "use" the same Session to log into the MVC system, or with you? P.S: This will be the essential point that my superiors will address.

  • @Renilsonandrade If Session is based on Cookies, you can. Or based on a storage engine that is shared between the two applications.

  • Thanks, I’ll see how it works, to explain right.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.