I posted a variation of this on an AJAX forum but think I was perhaps barking up the wrong tree, so let me try again here:
Here's an abridged glimpse of a GridView
definition that I have:
<asp:GridView ID="gridViewReports" runat="server" OnRowCommand="gridViewReports_RowCommand">
<asp:ButtonField ImageUrl="~/Images/Buttons/up.png" ButtonType="Image" CommandName="Up" ItemStyle-CssClass="clickable" />
<asp:ButtonField ImageUrl="~/Images/Buttons/down.png" ButtonType="Image" CommandName="Down" ItemStyle-CssClass="clickable" />
</asp:GridView>
Stepping through the code, Page_Load is fired twice whenever I click on one of these command buttons. The first time through, IsPostBack is always set to false (which is of course erroneous except for the very first time the form is loaded).
And strangely enough ... each row also has a checkbox in it. Clicking on the checkbox
does cause a postback, but only one as per normal.
Why would the
buttons be causing two postbacks?
Robert