3

I have a legacy ASP application which - at some point soon - needs to be migrated to ASP.Net 2.0 (to be compatible with other apps that are also in 2.0).

Are there best practices for this sort of thing i.e. is it possible/advisable as a first step to transfer the current unholy mix of html, vbscript and javascript en masse to aspx pages (without any code-behind separation), and then iteratively replace vbscript with data sources and the like, or this more trouble than its worth?

[The app is not that complex (we are talking 10 or so .asp pages, with a similar number of .inc files), but the mix of html and scripts is not at all pretty: lots of if-else statements to build SQL commands etc.].

2
  • 1
    Can you go to ASP.NET 3.5/4 with MVC? It would be a much simpler port? Commented Aug 27, 2010 at 7:29
  • unfortunately not - we have two apps: an asp one and an asp.net 2.0 one, and there are no plans to upgrade from 2.0 to a higher version of asp.net. Commented Aug 27, 2010 at 7:32

1 Answer 1

2

Vbscript might look similar to VB.NET but there's a difference. Besides the CreateObject calls need to be replaced by calls to objects in .NET land.

I suggest that you take out the html parts and put those already in your pages, same goes for javascript, images and css (those can mostly be taken in total without much change (sometimes none at all) to your new application.

This article might also be of interest to you: Converting ASP to ASP.NET.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.