An interesting question about the ASP.net 1.0 upgrade to ASP.net 2.0

Source: Internet
Author: User
Tags abstract
Asp.net| problem

Today finally the original ASP.net 1.0 program to upgrade to ASP.net 2.0, vs 2005 with the Conversion Wizard, all automation, easier to operate. When it is automatically converted, a few more strange files are found in the App_Code folder that start with a stub and are in a folder at the beginning of an MI (the name is deleted and forgotten) Because there is no such a. cs file, open a look, the original is an abstract class, there are several abstract methods and common fields. After viewing, it was found that in ASP.net 1.0 there are several pages behind the file that is the. aspx.cs file, which has the public method and the public field, all of these classes are abstracted out of a class, the original class name is changed and continue the abstract class, and all the public The method and public fields are also extracted into the abstract class, and the public field in the original class is deleted, and the public method in the original class is changed to an abstract method in the override abstract class.

If you want to delete these abstract classes, it is also convenient, but to change the original class back to the old, it can be.

Because on the internet to see ASP.net 1.0 conversion to ASP.net 2.0 when the notice, and did not see this item, sent here, hoping to give some friends some help.



Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.