title: How to solve with LinkButton Click event and also find that ID
body: <p>I have a problem with linkButtons that has click event is not fired i want to use same event for link buttons and when i click any linkButton the bind data to Repeater that is city wise
  Below is my code :</p>
  
  <pre><code>&lt;ul id="filter-tours" class="filter-out"&gt;
                          &lt;li&gt;&lt;asp:LinkButton ID="lnkBenglore" runat="server" CommandArgument="benglore" OnClick="lnkCity_Click" &gt;Benglore&lt;/asp:LinkButton&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;asp:LinkButton ID="lnkVadodara" runat="server" CommandArgument="vadodara" OnClick="lnkCity_Click"&gt;Vadodara&lt;/asp:LinkButton&gt;&lt;/li&gt;
                          &lt;li class="header" &gt;
                              &lt;asp:LinkButton ID="lnkAhmedabad" runat="server" CommandArgument="ahmedabad" OnClick="lnkCity_Click"&gt;
                                  &lt;div class="header-outer"&gt;
                                      &lt;div class="section-header"&gt;
                                          &lt;div class="circle-outer"&gt;
                                              &lt;div class="inner-1"&gt;
                                                  &lt;div class="inner-2"&gt;&lt;/div&gt;
                                              &lt;/div&gt;
                                          &lt;/div&gt;
                                          &lt;span&gt;Ahmedabad&lt;/span&gt;
                                          &lt;div class="head-bottom-bar"&gt;&lt;/div&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/asp:LinkButton&gt;
                          &lt;/li&gt;
                          &lt;li&gt;&lt;asp:LinkButton ID="lnkSurat" runat="server" CommandArgument="surat" OnClick="lnkCity_Click"&gt;Surat&lt;/asp:LinkButton&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;asp:LinkButton ID="lnkPune" runat="server" CommandArgument="pune" OnClick="lnkCity_Click"&gt;Pune&lt;/asp:LinkButton&gt;&lt;/li&gt;
                          &lt;li&gt;&lt;asp:LinkButton ID="lnkMumbai" runat="server" CommandArgument="mumbai" OnClick="lnkCity_Click"&gt;Mumbai&lt;/asp:LinkButton&gt;&lt;/li&gt;
  
                      &lt;/ul&gt;
                      &lt;div class="clearfix"&gt;&lt;/div&gt;
                      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
                          &lt;ContentTemplate&gt;
                          &lt;asp:Repeater id="rptHotel" runat="server" &gt;
  
                              &lt;HeaderTemplate&gt;
                                  &lt;div class="tours-wrapper"&gt;
                              &lt;/HeaderTemplate&gt;
  
                              &lt;ItemTemplate&gt;
                                  &lt;div class="tour &lt;%# Eval("CityName") %&gt;" style="margin-right:5px !important;"&gt;
                                      &lt;div class="tour-visual"&gt; 
                                          &lt;a href="SearchHotel.aspx?HotelID=&lt;%# Eval("HotelID") %&gt;" &gt;
                                              &lt;img src="Admin/Hotel/Main/&lt;%#Eval("Logo")%&gt;" alt="" /&gt;
                                              &lt;div class="hover"&gt;&lt;/div&gt; 
                                          &lt;/a&gt;
                                      &lt;/div&gt;
  
                                      &lt;div class="head"&gt;
                                          &lt;a href="SearchHotel.aspx?HotelID=&lt;%# Eval("HotelID") %&gt;" &gt;
                                              &lt;%#Eval("HotelName")%&gt;
                                          &lt;/a&gt;
                                      &lt;/div&gt;
                                      &lt;div class="tag-line"&gt;
                                          &lt;%# Limit(Eval("Address"), 55)%&gt;, &lt;%#Eval("CityName")%&gt;
                                      &lt;/div&gt;
                                      &lt;div class="rate"&gt;
                                          &lt;div class="rating" &gt;
                                              &lt;asp:Rating ID="Rating1" runat="server" ReadOnly="true" 
                                                  StarCssClass="Star" WaitingStarCssClass="WaitingStar" EmptyStarCssClass="Star"
                                                  FilledStarCssClass="FilledStar" CurrentRating='&lt;%# Eval("Rating") %&gt;' &gt;
                                              &lt;/asp:Rating&gt;
                                          &lt;/div&gt;
  
                                      &lt;/div&gt;
  
                                      &lt;div class="records"&gt;
                                          &lt;span class="icon-map-marker"&gt;&lt;a href="#"&gt;show maps&lt;/a&gt;&lt;/span&gt;
                                      &lt;/div&gt;
                                      &lt;div class="tour-bottom-line"&gt;&lt;/div&gt;
                                      &lt;a href="SearchHotel.aspx?HotelId=&lt;%# Eval("HotelID") %&gt;" class="booknow"&gt;Book Now&lt;/a&gt;
                                  &lt;/div&gt;
                              &lt;/ItemTemplate&gt;
  
                              &lt;FooterTemplate&gt;
                                  &lt;/div&gt;
                              &lt;/FooterTemplate&gt;
  
                          &lt;/asp:Repeater&gt;
                          &lt;/ContentTemplate&gt;
                          &lt;Triggers&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="lnkBenglore" EventName="Click" /&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="lnkVadodara" EventName="Click" /&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="lnkAhmedabad" EventName="Click" /&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="lnkSurat" EventName="Click" /&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="lnkPune" EventName="Click" /&gt;
                              &lt;asp:AsyncPostBackTrigger ControlID="lnkMumbai" EventName="Click" /&gt;
                          &lt;/Triggers&gt;
                      &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>and code behind code is:</p>
  
  <pre><code>protected void lnkCity_Click(object sender, EventArgs e)
      {
          string myConnectionString = "my connection string";
  
          LinkButton lnkCity = sender as LinkButton;
  
          if (lnkCity.CommandArgument.Equals("benglore"))
          {
              rptHotel.DataSource = null;
              rptHotel.DataBind();
  
              int cityID = 2;
              rptHotel.DataSource = dalMST_Hotel.SelectTop4(cityID, myConnectionString);
              rptHotel.DataBind();
          }
          else if (lnkCity.CommandArgument.Equals("vadodara"))
          {
              rptHotel.DataSource = null;
              rptHotel.DataBind();
  
              int cityID = 3;
              rptHotel.DataSource = dalMST_Hotel.SelectTop4(cityID, myConnectionString);
              rptHotel.DataBind();
          }
          else if (lnkCity.CommandArgument.Equals("ahmedabad"))
          {
              rptHotel.DataSource = null;
              rptHotel.DataBind();
  
              int cityID = 1;
              rptHotel.DataSource = dalMST_Hotel.SelectTop4(cityID, myConnectionString);
              rptHotel.DataBind();
          }
          else if (lnkCity.CommandArgument.Equals("surat"))
          {
              rptHotel.DataSource = null;
              rptHotel.DataBind();
  
              int cityID = 4;
              rptHotel.DataSource = dalMST_Hotel.SelectTop4(cityID, myConnectionString);
              rptHotel.DataBind();
          }
          else if (lnkCity.CommandArgument.Equals("pune"))
          {
              rptHotel.DataSource = null;
              rptHotel.DataBind();
  
              int cityID = 5;
              rptHotel.DataSource = dalMST_Hotel.SelectTop4(cityID, myConnectionString);
              rptHotel.DataBind();
          }
          else if (lnkCity.CommandArgument.Equals("mumbai"))
          {
              rptHotel.DataSource = null;
              rptHotel.DataBind();
  
              int cityID = 6;
              rptHotel.DataSource = dalMST_Hotel.SelectTop4(cityID, myConnectionString);
              rptHotel.DataBind();
          }
  
      }
  </code></pre>