Compiler error message: cs0030 cannot convert the type "ASP. login_aspx" to "system. Web. UI. webcontrols. login"

Source: Internet
Author: User

Compiler error message:Cs0030: The type "ASP. login_aspx" cannot be converted to "system. Web. UI. webcontrols. login"

Cause: added in. NET Framework 2.0LoginClass, and we addLogin. aspxInexplicably conflicted. This problem is not prompted, making it difficult to analyze.

<% @ Page Language = "C #" autoeventwireup = "true" codefile = "login. aspx. cs" inherits = "login" %>

In the "inherits =" login "clause, when the login. ASPX page is created, vs2005 also creates a class in the background page login. aspx. CS.

Public partial class login: system. Web. UI. Page

The login class and the 2.0 'System. web. UI. webcontrols. login' causes a conflict, so the preceding error occurs. here, you only need to set inherits = "login" and public partial class login: system. web. UI. when login in is changed to another one, the error will disappear.

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.