title: Link Button in asp.net click event not firing
body: <pre><code>&lt;asp:LinkButton ID="lbDownloadFile" name = "lbDownloadFile" runat="server" CausesValidation="false" 
                              onclick="lbDownloadFile_Click" /&gt;
  </code></pre>
  
  <p>I have this link button. on click:</p>
  
  <pre><code>protected void lbDownloadFile_Click(object sender, EventArgs e)
  {    //here is my debug pointer/breakpoint
      .........................
  }
  </code></pre>
  
  <p>but this event is not firing. my Page_Load() event is firing. How to solve this problem?</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
      if(!IsPostBack)
      {
          if (Session[Antrage_AnfrageSessionNames.AgntNr] == null)
          {
              Response.Redirect("../UserSessionError.aspx");
          }
  
          try
          {
              if (Request.QueryString["Kundennummer"].ToString() != null)
              {
                  //If kundennummer exists in QueryString then stores it to further use 
                  kundennummer = Request.QueryString["Kundennummer"].ToString();                    
              }
          }
          catch
          {
              kundennummer = string.Empty;
          }
      }
  }
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I am adding the code, what FireFox firebug shows me respective to the LinkButton.
  <img src="https://i.stack.imgur.com/w41Is.png" alt="enter image description here"></p>
  
  <p>I think the auto generated <strong>href</strong> is the main problem here.</p>