title: does not contain a definition for 'Y' and no extension method 'Y' accepting a first argument of type 'X' could be found
body: <p>My newTransport.aspx button control</p>
  
  <pre><code>&lt;asp:Button ID="najitRidiceButton" runat="server" Text="Vyhledat ridice" onclick="najitRidiceButton_Click" /&gt;
  </code></pre>
  
  <p>My newTransport.aspx.cs method</p>
  
  <pre><code>protected void najitRidiceButton_Click(object sender, EventArgs e)
  {
      DAODriver.searchDrivers(Calendar1.SelectedDate, casPrepravyTextBox.Text, Int32.Parse(pocetOsobTextBox.Text), extraZavazadla());
  }
  </code></pre>
  
  <p>Error i get</p>
  
  <blockquote>
    <p>CS1061: ASP.newtransport_aspx does not contain a definition for najitRidiceButton_Click  and no extension method najitRidiceButton_Click accepting a first argument of type ASP.newtransport_aspx could be found (are you missing a using directive or an assembly reference?)</p>
  </blockquote>
  
  <p>when i delete that button, everything works correctly, so i don´t understand it, this is my first ASP.NET web app so please help me i have no idea why it doesn´t work, although i tried to google it or find answer here on stackoverflow - no result</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/PageTemplate.Master" 
  AutoEventWireup="true" CodeBehind="NewTransport.aspx.cs" 
  Inherits="ASPDU1.NewTransport" %&gt;
  </code></pre>
  
  <p></p>