An interesting problem discovered when upgrading from asp.net 1.0 to asp.net 2.0
Author:Eve Cole
Update Time:2009-06-30 16:26:29
Today I finally upgraded the original ASP.NET 1.0 program to ASP.NET 2.0. VS 2005 comes with a conversion wizard, which makes everything automated and easy to operate. After it was automatically converted, I suddenly found that there were a few more strange files in the App_Code folder, all starting with stub, and in a folder starting with mi (the specific name was deleted and forgotten), because it turned out that there was no There are no such .cs files. When you open them, you will see that they are all abstract classes, and some of them have abstract methods and common fields. After checking, I discovered that there were several page post-files in asp.net 1.0, namely .aspx.cs files, which contained public methods and public fields. All these classes were abstracted into one class. The original class The name is changed and the abstract class is continued, and all public methods and public fields are also extracted into the abstract class. The public fields in the original class are deleted, and the public methods in the original class are changed to override abstract classes. abstract method in .
If you want to delete these abstract classes, it is convenient, but you have to change the original classes back to their original state.
Because I checked the precautions when converting from ASP.NET 1.0 to ASP.NET 2.0 on the Internet, I did not see this item. I am posting it here, hoping to give some help to some friends.
http://licongjie.cnblogs.com/archive/2006/05/25/409227.html