title: Repeater ItemCommand Doesn't fire
body: <p><strong>What I want</strong><br/>
  I want to fire ItemCommand event when some one click on repeater.</p>
  
  <p><strong>Issue</strong><br/>
  The ItemCommand is not fired.</p>
  
  <p><strong>Code</strong><br/></p>
  
  <p><strong>FrontEnd Code</strong></p>
  
  <pre><code>&lt;asp:Repeater ID="rptthumbnail" AutoCallback="true" runat="server" Visible="true"&gt;
           &lt;ItemTemplate&gt;
                &lt;td style="height:81px;width:51px"&gt;
                     &lt;asp:ImageButton ID="imgThumbnail" style="height:80px;width:50px" runat="server" /&gt;
                &lt;/td&gt;
           &lt;/ItemTemplate&gt;
   &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p><strong>Page_Load</strong></p>
  
  <pre><code>Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
      If Not IsPostBack Then
          Dim urls As List(Of String) = TryCast(Session("SliderUrls"), List(Of String))
  
  
          Dim urlsDT As DataTable = New DataTable("urls")
          Dim urlCol As DataColumn
          Dim urlrow As DataRow
          urlCol = New DataColumn()
          urlCol.DataType = System.Type.GetType("System.String")
          urlCol.ColumnName = "url"
          urlsDT.Columns.Add(urlCol)
          For value As Integer = 0 To urls.Count - 1
              urlrow = urlsDT.NewRow()
              urlrow("url") = Convert.ToString(urls(value))
              urlsDT.Rows.Add(urlrow)
          Next
          rptthumbnail.DataSource = urlsDT
          rptthumbnail.DataBind()
      End If
  
  End Sub
  </code></pre>
  
  <p><strong>ItemDataBound</strong></p>
  
  <pre><code>Private Sub rptthumbnail_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.RepeaterItemEventArgs) Handles rptthumbnail.ItemDataBound
      If e.Item.ItemType = ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item Then
          Dim myButton As ImageButton = CType(e.Item.FindControl("imgThumbnail"), ImageButton)
          Dim drv As DataRowView = e.Item.DataItem
          myButton.CommandName = "Click"
          myButton.CommandArgument = drv.Row("url").ToString()
          myButton.ImageUrl = drv.Row("url").ToString()
      End If
  End Sub
  </code></pre>
  
  <p><strong>ItemCommand</strong></p>
  
  <pre><code>Protected Sub rptthumbnail_ItemCommand(ByVal source As Object, ByVal e As RepeaterCommandEventArgs) Handles rptthumbnail.ItemCommand
      Select Case e.CommandName
          Case Is = "Click"
              Dim abc = e.CommandArgument
  
          Case Else
              Exit Select
      End Select
  End Sub
  </code></pre>
  
  <p><strong>What i have tried so far</strong><br/></p>
  
  <p><em><strong>Method 1</em></strong> <br/>
  I have put onItemCommand="rptthumbnail_ItemCommand" But i didn't worked.</p>
  
  <p><em><strong>Method 2</em></strong> <br/>
  I have add handlar in OnInit() But i didn't worked too.</p>
  
  <p>Can some please identify that what's the problem</p>