Start a new topic

Bring custom aspx files from v9 to v10

Hi Everyone,

I'm working on a upgrade from v9 to v10 and we have several custom aspx files that need to be migrated to v10.

How can we do it?

1 Comment

I going to guess you want to have MVC pages and don't want to copy the .aspx pages over. Otherwise the aspx pages can be copyied over and still work with minimal tweaking. Just keep in mind the .aspx pages will have a different skin/theme files since the technology is different.


Speaking on just my experience on, there are two methods I have seen/done when it comes upgrading pages from asp.net web forms to MVC pages.


The 1st is to create completely new MVC pages. The advantage recreating is the code will of be created to work under MVC from the start.


The second is do a find and replace to create new files. In this case .aspx.designer.cs is used to make the Modal, .aspx.cs used to make the controllers and .aspx to create the view. This method is not perfect and will still require manual code changes/checks. This due to things like visibility being dedicated field in the modal instead of a control. The main advantage find and replace has is it can be easier to make sure logic is not lost and many pages get a soft conversion fairly early on compared to creating from scratch.


With both methods I highly suggest to get an understanding on how a ActionResult and routing work together in MVC if nothing else.


Hope listing some methods/options helps.

Login or Signup to post a comment