All,
Don't know if this is by design or a bug of mine. I have an ObjectDataSource on a page that loads an asp:gridview. Actually it is a grid with a frozen header that I found on CodePlex, but for all purposed it is an asp:gridview.
Debugging the page and putting a break point in the SelectMethod I find that the break point is hit twice. My question is why/how? Has anyone else seen this? I'm not calling gvWorklist.DataBind anywhere in the code behind. I am letting the ODS take care of everything, and it seems that it is doing its job twice.
Has anyone seen this similar Double Post Back behaviour?
Here is the aspx page:
* Sine scientia ars nihil est
* Respondeat superior
Don't know if this is by design or a bug of mine. I have an ObjectDataSource on a page that loads an asp:gridview. Actually it is a grid with a frozen header that I found on CodePlex, but for all purposed it is an asp:gridview.
Debugging the page and putting a break point in the SelectMethod I find that the break point is hit twice. My question is why/how? Has anyone else seen this? I'm not calling gvWorklist.DataBind anywhere in the code behind. I am letting the ODS take care of everything, and it seems that it is doing its job twice.
Has anyone seen this similar Double Post Back behaviour?
Here is the aspx page:
Code:
<asp:ObjectDataSource ID="odsWorklist" TypeName="GridViewHelper" SelectMethod="GetWorkListData"
runat="server" EnableCaching="False" EnableViewState="false">
<SelectParameters>
<asp:QueryStringParameter Direction="input" Name="WorklistId" QueryStringField="worklist_id" Type="int16" />
<asp:SessionParameter Direction="input" Name="EmpId" SessionField="empid" Size="10" Type="string" />
<asp:SessionParameter Direction="input" Name="DataSource" SessionField="odbc_dsn" Size="10" Type="string" />
<asp:ControlParameter ControlID="dateWorklist" Direction="input" Name="WorkListDate" PropertyName="text" Size="20" Type="string" />
<asp:QueryStringParameter Direction="input" Name="ReportFilterKey" QueryStringField="orptfltr_key" Size="20" Type="String" />
<asp:SessionParameter Direction="input" Name="UserId" SessionField="userid" Size="10" Type="string" />
<asp:SessionParameter Direction="input" Name="ClientDSN" SessionField="clientdsn" Size="10" Type="string" />
<asp:ControlParameter ControlID="ddlBillReady" Direction="input" Name="isBillReady" PropertyName="SelectedIndex" Type="Int16" />
</SelectParameters>
</asp:ObjectDataSource>
<cc1:FrozenGridView ID="gvWorkList" runat="server" AutoGenerateColumns="false" AllowSorting="true" Enabled="true" GridLines="Both" EnableViewState="false" DataSourceID="odsWorklist" Scrolling="both" CssClass="tv"
LockColumn="0">
<AlternatingRowStyle CssClass="tableViewAlternatingRow" />
<HeaderStyle CssClass="tableViewHeader" />
<RowStyle CssClass="tableViewRow" />
<SelectedRowStyle CssClass="tableViewSelectedRow" />
<Columns>
<asp:TemplateField>
<itemtemplate>
<input type="checkbox" runat="server" id="cbChoice" onclick="chChoice_Click(this)" />
</itemtemplate>
</asp:TemplateField>
</Columns>
<PagerSettings Mode="Numeric" Position="TopAndBottom" />
<PagerStyle CssClass="tableViewPager frozenTop" Wrap="true" />
</cc1:FrozenGridView>
* Sine scientia ars nihil est
* Respondeat superior