ASP. NET get the Class Name of the hidden file (original)

Source: Internet
Author: User
This problem is encountered during development.
This. GetType (). The result is ASP. ***** _ Aspx.
Then how can I get the Class Name :****. The class name obtained through string processing is not a formal method.

After querying the information, considerCodeIt is easy to understand the hidden mechanism.
HideProgramSeparate the logic from the static page layout. This technology requires the creation of an intermediate base class, which is located between the accumulated page and the class generated by the computer according to the. asp file.
Each hidden code file contains a partial classification, and ASP. net2.0 also generates a partial classification. Then, it is compiled into a class together to become the base class of the class generated by the. aspx file. In this way.
Obviously, this accesses the class generated by the. ASPX page compilation. If we rely on the class name of the hidden code file, we naturally need to access its base class.
Therefore. This. GetType (). basetype. Name is the expected result.

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.