title: Error: "is already declared as protected WithEvents"
body: <p>Web Controls</p>
  
  <pre><code>&lt;asp:TextBox id="txtUsername" runat="server" CssClass="input-block-level" placeholder="Username" type="text" required&gt;&lt;/asp:TextBox&gt;
  &lt;asp:TextBox id="txtPassword" runat="server" CssClass="input-block-level" placeholder="Password" type="password" required&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>Code Behind</p>
  
  <pre><code>Inherits System.Web.UI.MasterPage
  Protected WithEvents txtUsername As System.Web.UI.WebControls.Literal
  Protected WithEvents txtPassword As System.Web.UI.WebControls.Literal
  </code></pre>
  
  <p>Error:</p>
  
  <blockquote>
    <p>Parse Error: 'txtPassword' is already declared as 'Protected WithEvents txtPassword As System.Web.UI.Webcontrols.TextBox in' this class <br />
            'txtUsername' is already declared as 'Protected WithEvents txtUsername As System.Web.UI.Webcontrols.TextBox in' this class</p>
  </blockquote>
  
  <p>What could be the cause of the error? </p>