Replace the CS code file compiled by ASPX

Source: Internet
Author: User

. Net BS system, which has been compiled and all CS code files are invisible. It is a headache to modify local code. Although reflect and other tools can be used for reverse encoding, but the code is often wrong. If it is confusing, it cannot be used. Therefore, you can solve the problem by modifying the desired ASPX page and asking it to call its own CS code file to replace the compiled code: 1. first, create a CS file corresponding to the ASPX file 2. copy the decompressed CS code to the CS file. modify Inherits = "xxxxxx" in the first sentence of the ASPX file to Inherits = "xxxxxx1", and change public partial class xxxxxx In the CS file to public partial class xxxxxx1 4. modify the CS code as needed. In this way, the ASPX page calls the CS file code to replace the code in the DLL inventory to avoid other errors that may occur when the entire DLL library is re-compiled.

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.