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.