views:

57

answers:

1

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.].

+1  A: 

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.

XIII
that's a very helpful link - thanks!
davek