Create a new folder in the same folder and create a web form with the same name.

Source: Internet
Author: User

Assume that a web project is named OA,

Create a folder named oa1 in this project, and create a new web form named OA 1.aspx,

Then you can add any web forms or Class Libraries under oa1. For example, you can create a form named oa2.aspx.

Compile the file. In the OA2 form, "oa1 is already included in the namespace ",

The reason is that the namespace Oa. oa1.oa2,

View oa1.aspx. Its namespace is OA,

The class name is public class OA: system. Web. UI. Page.

Oa. oa1 is a class in OA 1.aspx,

In oa2.aspx, it becomes a namespace.

Therefore, an error occurs when oa1 is included in the namespace during compilation.

Therefore, do not create a new folder with the same name as the following web form class library.

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.