title: ListView ItemCommand Event Not Firing in Firefox
body: <p>I am dynamically adding buttons to a listview and using the ItemCommand event to handle the button click event using the CommandName property for the button. It works fine in IE, but when I try in Firefox 5, it is hitting the page load event but not the ItemCommand event. Is there a work-around for Firefox?</p>
  
  <p>Thanks!</p>
  
  <blockquote>
  <pre><code>&lt;asp:ListView ID="lvItems" runat="server" OnItemDataBound="lvItems_ItemDataBound"
              DataSourceID="odsItems" OnItemCommand="lvItems_ItemCommand" DataKeyNames="ItemID"
              OnDataBound="lvItems_DataBound" OnPagePropertiesChanging="lvItems_PagePropertiesChanging"&gt;
              &lt;LayoutTemplate&gt;
                              &lt;div id="itemPlaceholder" runat="server"&gt;
                              &lt;/div&gt;
              &lt;/LayoutTemplate&gt;
              &lt;ItemTemplate&gt;
                              &lt;div&gt;
                                              &lt;asp:Label ID="lbl" runat="server"&gt;
                                              &lt;/asp:Label&gt;
                                              &lt;asp:Button ID="btnAdd" runat="server" CommandName="Add" Text="Add" OnClientClick="this.disabled=true;" /&gt;
                              &lt;/div&gt;
              &lt;/ItemTemplate&gt;
              &lt;EmptyDataTemplate&gt;
                              No items found for the selected filters. Please try again.&lt;br /&gt;
                              &lt;br /&gt;
              &lt;/EmptyDataTemplate&gt;
  &lt;/asp:ListView&gt;
  
  
  protected void lvItems_ItemCommand(object sender,ListViewCommandEventArgs e) 
  {
  if (e.CommandName == "Add")
      {  
          //code here; 
      }
  }
  </code></pre>
  </blockquote>