Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 987989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:34:20+00:00 2026-05-16T05:34:20+00:00

i am using LinqDataSource and a gridview control and my paging/sorting works fine but

  • 0

i am using LinqDataSource and a gridview control and my paging/sorting works fine but when i add <asp:UpdatePanel than its not working, below is my .aspx page and i am not sure what i am missing…

<%@ Page Language="C#" MasterPageFile="~/MasterPage/MAIN.Master" AutoEventWireup="true"  CodeBehind="ContPage.aspx.cs" Inherits="ContPage" %>      
<asp:Content ID="Content1" ContentPlaceHolderID="cphMaster" runat="server">     
    <div class="contentContainer">           
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" OnSelecting="LinqDataSource_Selecting" 
            ContextTypeName="MyDataContextDataContext" AutoPage="true" AutoSort="true"> 
        </asp:LinqDataSource>     
     <asp:UpdatePanel ID="up_gv1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional"> 
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" /> 
                <asp:AsyncPostBackTrigger ControlID="btnReset" EventName="Click" /> 
                <asp:AsyncPostBackTrigger ControlID="ddlFilterResultBy" EventName="SelectedIndexChanged" /> 
            </Triggers> 
            <ContentTemplate>              
                <asp:GridView runat="server" ID="gv" AutoGenerateColumns="False" 
                    CssClass="gv" DataSourceID="LinqDataSource1" Width="880px" AllowPaging="true" AllowSorting="true" DataKeyNames="Id" OnRowDataBound="gvRowDataBound" PageSize="15"> 
                    <PagerSettings Visible="true" Position="Bottom" /> 
                    <EmptyDataTemplate>No  Inquiries</EmptyDataTemplate> 
                    <Columns> 
                        <asp:BoundField DataField="InquiryID" Visible="false" /> 
                        <asp:TemplateField HeaderText="Date" SortExpression="insertDate">                                
                        </asp:TemplateField> 
                        <asp:TemplateField HeaderText="" SortExpression="">                               
                        </asp:TemplateField> 
                        <asp:TemplateField HeaderText="Subject" SortExpression="Subject"> 
                            <ItemTemplate> 
                                <a href='Edit.aspx?InqId=<%# Eval("Id") %>'> 
                                    <%# Eval("Subject")%> 
                                </a> 
                            </ItemTemplate> 
                        </asp:TemplateField> 
                        <asp:TemplateField HeaderText="Officer" SortExpression="Name"> 
                            <ItemTemplate> 
                                <asp:Label ID="lblOfficer" runat="server" Text='<%# Eval("Name")%>'></asp:Label>    
                            </ItemTemplate> 
                        </asp:TemplateField>                            
                        <asp:TemplateField HeaderText="Status" SortExpression="ReporterInquiryStatusDesc"> 
                            <ItemTemplate> 
                                <asp:DropDownList ID="ddStatus" runat="server" DataSourceID="ObjectDataSource1" DataTextField="Name" AppendDataBoundItems="true" DataValueField="Id" SelectedValue='<%# Eval("StatusId")%>'>    
                                    <asp:ListItem Text="" Value="0" /> 
                                </asp:DropDownList> 
                                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetStatusList" TypeName="My_DAL.Status_LookupRepository" />   
                            </ItemTemplate> 
                        </asp:TemplateField> 
                        <asp:TemplateField HeaderText="" SortExpression=""> 
                            <ItemTemplate> 
                                <asp:Button ID="btnSaveRowStatus" runat="server" OnClick="btn_SaveRowStatus" Text="Save" />    
                            </ItemTemplate> 
                        </asp:TemplateField> 
                    </Columns> 
                    <PagerTemplate> 
                        <div style="float: left; margin-left: 7px; line-height: 22px;"> 
                            <div style="float: left;"> 
                                <asp:ImageButton CommandName="Page" CommandArgument="First" ToolTip="First Page" runat="server" ID="PagerFirstButton" />    
                                <asp:ImageButton ID="PagerPrevButton" CommandName="Page" CommandArgument="Prev" ToolTip="Previous Page" runat="server"  /> 
                            </div> 
                            <div style="float: left;"> 
                                <div class="pagerNumber"> 
                                    <asp:LinkButton runat="server" ID="NumericPager1" CommandArgument="1" Text="1" CommandName="Page" />    
                                </div> 
                                <div class="pagerNumber"> 
                                    <asp:LinkButton runat="server" ID="NumericPager2" CommandArgument="2" Text="2" CommandName="Page" />    
                                </div> 
                                <div class="pagerNumber"> 
                                    <asp:LinkButton runat="server" ID="NumericPager3" CommandArgument="3" Text="3" CommandName="Page" />    
                                </div> 
                                <div class="pagerNumber"> 
                                    <asp:LinkButton runat="server" ID="NumericPager4" CommandArgument="4" Text="4" CommandName="Page" />    
                                </div> 
                                <div class="pagerNumber"> 
                                    <asp:LinkButton runat="server" ID="NumericPager5" CommandArgument="5" Text="5" CommandName="Page" />    
                                </div> 
                            </div> 
                            <div style="float: left;"> 
                                <asp:ImageButton ID="PagerNextButton" CommandName="Page" CommandArgument="Next" ToolTip="Next Page" runat="server" /> 
                                <asp:ImageButton ID="PagerLastButton" CommandName="Page" CommandArgument="Last" ToolTip="Last Page" runat="server" /> 
                            </div> 
                        </div>                              
                        <div class="gridCount" runat="server" id="divGridCount"> 
                            <b>1</b> Items Found &nbsp;</div> 
                    </PagerTemplate> 
                </asp:GridView>                     
       </ContentTemplate> 
    </asp:UpdatePanel>   
  </div> 
</asp:Content>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:34:21+00:00Added an answer on May 16, 2026 at 5:34 am

    Since you have ChildrenAsTriggers="false" only those controls set as AsyncPostBackTrigger will cause an update of the UpdatePanel.

    Why you need ChildrenAsTriggers="false"?

    UpdatePanel.ChildrenAsTriggers Property

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

when I tried to update my gridview which is connected using <asp:LinqDataSource> and Enabling
I am using a LinqDataSource and a FormView with paging enabled on an ASP.NET
I'm using linqdatasource for displaying data in listview (nested because of grouping) control. I
I have the following code in my user control: <asp:LinqDataSource ID=myLinqDataSource runat=server AutoSort=true ContextTypeName=MyDBContext
I'm using a standard GridView with a LinqDataSource. The user can sort and page
I'm using a GridView and a LinqDataSource to view the Categories table. I set
I´m using the LinqDataSource to populate a grid. But now I need the SQL
I want to put the current date in my formview 'dateadded' but its not
I have a gridview that is using a LinqDataSource for it's datasource. I've added
i have a GridView with LinqDataSource. im using the following technique to populate a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.