title: The base class includes the field 'btnLogin', but its type (FoodOrder.App_Code.LinkButtonDefault) is not compatible
body: <blockquote>
    <p>The base class includes the field
    'btnLogin', but its type
    (FoodOrder.App_Code.LinkButtonDefault)
    is not compatible with the type of
    control
    (FoodOrder.App_Code.LinkButtonDefault).</p>
  </blockquote>
  
  <p>aspx:</p>
  
  <pre><code>&lt;%@ Register Namespace="FoodOrder.App_Code" TagPrefix="ac1" %&gt;
  &lt;ac1:LinkButtonDefault ID="btnLogin" runat="server" Text="Prijava" CssClass="gumbek" 
                  onclick="btnLogin_Click" /&gt;
  </code></pre>
  
  <p>LinkButtonDefault:</p>
  
  <pre><code>namespace FoodOrder.App_Code
  {
      public class LinkButtonDefault : LinkButton
      {
          protected override void OnLoad(System.EventArgs e)
          {
              Page.ClientScript.RegisterStartupScript(GetType(), "addClickFunctionScript",
                  _addClickFunctionScript, true);
  
              string script = String.Format(_addClickScript, ClientID);
              Page.ClientScript.RegisterStartupScript(GetType(), "click_" + ClientID,
                  script, true);
              base.OnLoad(e);
          }
  
          private const string _addClickScript = "addClickFunction('{0}');";
  
          private const string _addClickFunctionScript =
              @"  function addClickFunction(id) {{
              var b = document.getElementById(id);
              if (b &amp;&amp; typeof(b.click) == 'undefined') b.click = function() {{
                  var result = true; if (b.onclick) result = b.onclick();
                  if (typeof(result) == 'undefined' || result) {{ eval(b.getAttribute('href')); }}
              }}}};";
      }
  }
  </code></pre>
  
  <p>aspx.designer.cs:</p>
  
  <pre><code>protected global::FoodOrder.App_Code.LinkButtonDefault btnLogin;
  </code></pre>
  
  <p>Can someone explain me error?</p>