网页控制
<asp:TextBox id="txtUsername" runat="server" CssClass="input-block-level" placeholder="Username" type="text" required></asp:TextBox>
<asp:TextBox id="txtPassword" runat="server" CssClass="input-block-level" placeholder="Password" type="password" required></asp:TextBox>
代码背后
Inherits System.Web.UI.MasterPage
Protected WithEvents txtUsername As System.Web.UI.WebControls.Literal
Protected WithEvents txtPassword As System.Web.UI.WebControls.Literal
错误:
解析错误:“txtPassword”已声明为“Protected WithEvents txtPassword As System.Web.UI.Webcontrols.TextBox in”此类
“txtUsername”已声明为“Protected WithEvents txtUsername As System.Web.UI.Webcontrols.TextBox in” ' 这节课
错误的原因可能是什么?