I'm working on an asp site that uses masterpages.
The page I'm struggling with is structured like this:
<asp:UpdatePanel ID="MainUpdatePanel" runat="server">
<ContentTemplate>
<asp:Panel ID="Panel3" runat="server" CssClass="Panel">
<asp:UpdatePanel ID="UpdatePanel3" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Panel ID="gridpanel" runat="server" Visible="false" ClientIDMode="Static">
<asp:GridView ID="grdCombinedTransactions" runat="server" PageSize="40" AllowPaging="True" AllowSorting="true" etc etc >
<asp:TemplateField HeaderText="GL Account" >
<ItemTemplate>
<asp:TextBox ID="txtGLAccount" runat="server" Text='<%# Bind("GLAccount") %>' CssClass="txtGLAccount" OnTextChanged="txtGLAccount_TextChanged" AutoPostBack="true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
</asp:GridView>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
There are other panels with other updatepanels inside the MainUpdatePanel but this is the one I'm having problems with and specifically the GridView.
The txtGLAccount field causes a PostBack whenever it's text is changed. This PostBack scrolls the page so that the txtGLAccount field is at the bottom of the page.
I want to prevent any kind of scrolling since this behaviour looks 'jumpy' and is disruptive to the data entry workflow for this page.
Is this possible?
Thanks!