Recently, for the purpose of the project, I wrote an auxiliary tool to convert an existing ASP site to an Asp.net site.
The main steps are as follows: Start from the specified site portal file, scan all the hyperlinks in the page file, and then convert the ASP file. aspx file, put ASP or. inc file. ascx file (note that it is not converted to a user control by default, but is suffixed with ascx. If you want to convert it to a user control, you must set it in options ). Of course, it will not be converted during the conversion process.Code(Currently, the younger brother is not capable of writing such powerful tools), just comment out the ASP code embedded in <%> on the page. The next step is to write it again in C # by referring to the comments of the original ASP code. Of course, you can also organize the newly generated Asp.net site by modifying the file name, changing the file path, and moving a folder. All the change tools will modify the corresponding hyperlinks, ensure that the original hyperlink is still displayed normally.
Because the project is very tight and the time is limited, this tool was available within the last four or five days. There are certainly still many problems. First, let them be available for interested friends to play :)
Http://images.cnblogs.com/cnblogs_com/laser_lu/AspMigrator1.5.rar
Of course, I 'd like to ask someone to help feedback some bugs while trying it out. I am very grateful! In addition, because I have been very busy recently, I have not provided a detailed instruction on this tool. If I want to use it, I 'd like to explore it myself. I'm sorry here...