How to prepare asp.net web forms for smooth transition to asp.net mvc

I would like to prepare an existing asp.net web forms application for a smooth transition to asp.net mvc. I created my application as follows

  • The POCO entity level is used to progress through all levels
  • Data layer
  • Business level
  • UI level - no view state; no mail; there are only two things in the code: a) fill-in form, list view, dropdown, etc. in page loading; b) web methods for jQuery client side ajax support. The web methods are very light, basically going to the business layer and returning JSON or html back to the client.

Is there anything else I could do to ensure a smooth conversion to asp.net mvc?

I think my conversion tasks will be

  • Port your UI markup to a view
  • Load the page load code into the controller action and render the view
  • Port web methods to controller action and return JSON

Am I missing anything? Any information on what I should expect?

Many thanks.

+2


source to share


1 answer


It looks like you've covered most of that. Are you using a sitemap for navigation? You will need to look into creating a custom Sitemap as MVC doesn't support very well (action / controller concepts). It's nice that after switching to MVC, you'll have access to some interesting links like DataAnnotations for general checking. You will also have access to domain support. Plus, your web infrastructure will become more validated as well!



Good luck!

+1


source







All Articles