A strange problem that fails to be generated but can be debugged

Source: Internet
Author: User
Today, when I was writing a program, I found a strange problem.
After a webpage is compiled and translated, it prompts that the context does not have a gridview, which has been declared on the page and can be accessed normally in the CS file of IDE. but it cannot be compiled. if this error is ignored and compilation continues, you can continue. however, the website cannot be published if compilation fails.
Later, I accidentally discovered the problem. I copied a copy of this page. The default file name is "Duplicate xx. aspx and recovery xx. aspx. CS ", and in the @ page attribute, codefile is still the default" XX. aspx. CS ", it is for this reason that the gridview is in XX. ASPX page declared, in XX. aspx. the CS page can be accessed normally. during compilation, the compiler found that the "Replica xx. the ASPX page does not contain the declaration of the gridview, so it prompts that the grirview cannot be found in the context. remove or remove the duplicate from the solution.
I don't know if the problem is correct. It is a temporary solution.

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.