I have Two link buttons : lnkViewAll & lnkPaging and a GridView : GridView1 within the same control and . The feature is - when the first time the grid will bind it will show the records by paging(10 records in a page). Then if we click the 'View All' button it will show all the records with no paging.Now if again we click the 'Paging' button the grid will again show the records by paging. Up to the 'View All' Button click it is working fine but if we then click on the paging button the error is coming saying UpdatePanel does not exist.The code is as follows:\[code\]<pre lang="xml">&<pre lang="HTML"><pre lang="HTML"><pre lang="HTML"><pre lang="HTML"><pre lang="HTML"><pre lang="HTML"><pre lang="HTML"><pre lang="text"><pre lang="Javascript"><pre lang="HTML"></pre></pre></pre></pre></pre></pre></pre></pre></pre></pre>lt;asp1:UpdatePanel ID="UpdatePanelSortOrder" runat="server" UpdateMode="Conditional"> <ContentTemplate> <table cellspacing="0" cellpadding="3" width="100%" border="0"> <tr> <td align="center"> <ul class="buttons"> <li> <asp:LinkButton ID="lnkViewAll" runat="server" CssClass="BlueButtonApp" meta:resourcekey="btnSearch" OnClick="lnkViewAll_Click">View All</asp:LinkButton> </li> <li class="right"></li> <li> <asp:LinkButton ID="lnkPaging" runat="server" CssClass="BlueButtonApp" meta:resourcekey="btnClear" OnClick="lnkPaging_Click">View By Paging</asp:LinkButton> </li> <li class="right"></li> </ul> <asp:HiddenField ID="HiddenField1" runat="server"></asp:HiddenField> </td> </tr> </table> <!-- Grid starts here --> <div id="div1"> <asp:GridView ID="gvProcessArea" runat="server" EmptyDataText="No Records Found" CaptionAlign="Left" Width="99%" CellPadding="1" AutoGenerateColumns="False" AllowSorting="True" EnableTheming="True" BorderWidth="0px" BorderStyle="None" PageSize="10" UseCustomPager="True" GridLines="None" GridAlternateRowStyle="" GridCellPadding="3" OnDataBound="gvProcessArea_DataBound" GridCellSpacing="0" GridDataText_NORECORDFOUND="No Record Found" GridDropDownStyle="" GridHeaderStyle="" GridPageIndex="0" GridPagerStyle="" GridRowStyle="" meta:resourcekey="gvProcessArea" OnRowCommand="gvProcessArea_RowCommand" OnRowDataBound="gvProcessArea_RowDataBound" OnRowCreated="gvProcessArea_RowCreated"> <HeaderStyle CssClass="tableHDGridViewV2" ForeColor="Black"></HeaderStyle> <RowStyle CssClass="blueRow" /> <AlternatingRowStyle CssClass="whiteRow" /> <FooterStyle CssClass="whiteRow"></FooterStyle> <Columns> <asp:TemplateField> <ItemTemplate> <asp:Label ID="lblLookupID" runat="server" Text='<%# Eval("process_area_id") %>' Visible="false"></asp:Label> <asp:HiddenField ID="hdfLookUPID" runat="server" Value=http://stackoverflow.com/questions/15690109/'<%# Eval("process_area_id")%>'> </asp:HiddenField> </ItemTemplate> <HeaderStyle HorizontalAlign="Center"></HeaderStyle> <ItemStyle HorizontalAlign="Center" Width="0%"></ItemStyle> </asp:TemplateField> <asp:BoundField DataField="process_area_name" HeaderText="Process Area" SortExpression="process_area_name" meta:resourceKey="LOOKUP_NAMEResource"> <HeaderStyle Wrap="True" Width="80%"></HeaderStyle> <ItemStyle Wrap="True"></ItemStyle> </asp:BoundField> <asp:TemplateField HeaderText="Status" SortExpression="approval_status" meta:resourcekey="APPROVAL_STATUSResource"> <ItemStyle Width="20%" HorizontalAlign="Left"></ItemStyle> <HeaderStyle Width="40%" HorizontalAlign="Left"></HeaderStyle> <ItemTemplate> <asp:Label runat="server" Text='<%#Eval("approval_status") %>' ID="lblApprovalStatus"></asp:Label> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Sorting Order" SortExpression="sort_order"> <ItemStyle></ItemStyle> <HeaderStyle Width="80%" HorizontalAlign="Left"></HeaderStyle> <ItemTemplate> <aspropDownList ID="ddlSortOrder" Width="50px" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSortOrder_SelectedIndexChanged"> </aspropDownList> <asp:HiddenField ID="hdfSortOrder" runat="server" Value='<%# Eval("sort_order")%>'> </asp:HiddenField> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <%--<asp:ObjectDataSource ID="odsProcessArea" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetProcessAreaToBind" TypeName="com.Citi.Citigroup.RACFramework.Web.UI.Common.CacheObjects.CacheProcessArea" SelectCountMethod="GetProcessAreaCountGrid" MaximumRowsParameterName="liMaxRecords" StartRowIndexParameterName="liStartRecord" SortParameterName="lsSortExpression" EnablePaging="True" OnSelected="odsProcessArea_Selected" OnSelecting="odsProcessArea_Selecting"> </asp:ObjectDataSource>--%> <asp:TextBox ID="txtCapsSearchCriteria" runat="server" Visible="False" /> </div> </ContentTemplate> <%--<Triggers> <asp:AsyncPostBackTrigger ControlID="lnkViewAll" EventName="Click" /> <asp:AsyncPostBackTrigger ControlID="lnkPaging" EventName="Click" /> </Triggers>--%> </asp1:UpdatePanel></pre>\[/code\]region Button Click Events\[code\] protected void lnkViewAll_Click(object sender, EventArgs e) { try { //IsAllRecords = true; DataTable dtProcessArea = new DataTable(); Common.CacheObjects.CacheProcessArea lobjProcessArea = new Common.CacheObjects.CacheProcessArea(); dtProcessArea = lobjProcessArea.GetProcessAreaAll(); gvProcessArea.DataSource = dtProcessArea; gvProcessArea.AllowPaging = false; IsAllRecords = true; gvProcessArea.DataBind(); PopulatePaging(); UpdatePanelSortOrder.Update(); } catch (Exception objException) { hdnErrorDisplayer.Value = http://stackoverflow.com/questions/15690109/(hdnErrorDisplayer.Value =="false") ? "true" : "false"; ErrDisplayer1.DisplayError(objException); } } protected void lnkPaging_Click(object sender, EventArgs e) { try { DataTable dtProcessArea = new DataTable(); Common.CacheObjects.CacheProcessArea lobjProcessArea = new Common.CacheObjects.CacheProcessArea(); dtProcessArea = lobjProcessArea.GetProcessAreaAll(); gvProcessArea.DataSource = dtProcessArea; gvProcessArea.AllowPaging = true; IsAllRecords = false; gvProcessArea.DataBind(); PopulatePaging(); UpdatePanelSortOrder.Update(); } catch (Exception objException) { hdnErrorDisplayer.Value = http://stackoverflow.com/questions/15690109/(hdnErrorDisplayer.Value =="false") ? "true" : "false"; ErrDisplayer1.DisplayError(objException); } } #endregion\[/code\]