An interesting question about upgrading Asp.net 1.0 to Asp.net 2.0
Source: Internet
Author: User
Today, the original Asp.net 1.0 ProgramUpgraded To Asp.net 2.0. VS 2005 has a conversion wizard, Which is automated and easy to operate. After it is automatically converted, it suddenly finds that a few strange files in the app_code folder start with stub and are in a folder starting with MI (the specific name is deleted, forget), because there is no such thing at all. open the CS file. It turns out that they are all abstract classes. There are several abstract methods and common fields. After checking, we found that there were several pages in Asp.net 1.0 with the post file. aspx. the CS file contains the public method and public field. All these classes are abstracted into a class. The original class name is changed and the abstract class continues, all the public methods and public fields are also extracted to the abstract class. The public fields in the original class are deleted, and the public methods in the original class are changed to the abstract methods in the override abstract class.
It is convenient to delete these abstract classes, but you can change the original class to the original one.
This is because I did not see this item when viewing the notes for converting Asp.net 1.0 to Asp.net 2.0 on the Internet. I hope to help some friends here.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service