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

  • SEARCH
  • Home
  • 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 7539405
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T07:22:21+00:00 2026-05-30T07:22:21+00:00

I getting issue with MaintainScrollPositionOnPostback with UpdataPanel in TestPage.aspx page. Page Header : <%@

  • 0

I getting issue with MaintainScrollPositionOnPostback with UpdataPanel in TestPage.aspx
page.
Page Header :

<%@ Page Language="C#" MasterPageFile="~/MasterPages/Abc.master" AutoEventWireup="true"
    MaintainScrollPositionOnPostback="true" CodeFile="Testpage.aspx.cs" Inherits="Testpage"
    Title="Test Page" %>

I registered Ajaxtoolkit Control to my aspx page.
with

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxtoolkit" %>

When I add ” MaintainScrollPositionOnPostback=”true” “page directive to my .aspx page
then I got the error message as shown in attached image.

enter image description here

Error: Status code returns from server:500

my Code

<asp:updatepanel id="upAnatomicalConfig" runat="server" updatemode="Conditional">                                        
<ContentTemplate>
<div id="divform" style="width: 98%; text-align: left; margin: 0 auto" class="W_B">
    <div>
        <asp:validationsummary id="valsum" runat="server" validationgroup="abc" showmessagebox="true"
            displaymode="BulletList" enableclientscript="true" showsummary="false" />
    </div>
    <!-- Here is some text box that I used for Save -------->
    <asp:button id="btnSave" runat="server" text="Save" cssclass="button" causesvalidation="true"
        validationgroup="abc" onclick="btnSave_Click" />
    &nbsp;
    <asp:button id="btnCancel" runat="server" text="Cancel" cssclass="button" onclick="btnCancel_Click"
        causesvalidation="false" />
    <asp:datagrid id="dtgrid" runat="server" width="100%" cssclass="dgGrid" onitemdatabound="dtgrid_ItemDataBound"
        cellpadding="2" autogeneratecolumns="false" showfooter="true" showheader="true"
        onitemcreated="dtgrid_ItemCreated" allowpaging="True" pagesize="25" allowcustompaging="True"
        gridlines="None" allowsorting="true" borderwidth="0px" borderstyle="None" onpageindexchanged="dtgrid_PageIndexChanged"
        onsortcommand="dtgrid_OnSortCommand">
    <Columns>                                                               
    <asp:TemplateColumn HeaderStyle-Width="5%" ItemStyle-Width="5%">
    <ItemTemplate>
        <asp:ImageButton ID="ibtnEdit" CausesValidation="false" OnClick="ibtnEdit_Click"
            runat="server" ImageUrl="~/Images/Edit.gif" ToolTip="Edit Template" CommandArgument='<%# Eval("tblID") %>'>
        </asp:ImageButton>
        <asp:ImageButton ID="ibtnDisc" CausesValidation="false" OnClick="ibtnDisc_Click"
            runat="server" ImageUrl="~/Images/inactive_record.gif" ToolTip="Move to inactive"
            CommandArgument='<%# Eval("tblID") %>'></asp:ImageButton>
    </ItemTemplate>
</asp:TemplateColumn>

</Columns>
</asp:datagrid>
</div>
</ContentTemplate>
<Triggers>
    <asp:PostBackTrigger ControlID="btnSave" />
</Triggers>
 </asp:updatepanel>

What is the reason behind that?

  • 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-30T07:22:23+00:00Added an answer on May 30, 2026 at 7:22 am


    Page directive – “MaintainScrollPositionOnPostback” not worked
    Reason is that
    1) Framework 2.0 and
    2) AjaxToolkit (ver 1.0.2….)

    Reset Position after AJAX (async call) postback not supported.

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

Sidebar

Related Questions

I'm getting an issue with the F# powerpack quotation evaluation. open Microsoft.FSharp.Linq.QuotationEvaluation let print
I'm having an issue getting a LINQ query to work. I have this XML:
I'm having an issue getting some code to work. Is there a way to
I'm having an issue getting files loaded into an app called GCS, by dragging
I'm having an issue getting this CSS for a sprite sheet to work on
I'm having an issue getting Appstats to work correctly. Using /appstats or /appstats/stats ends
I'm having an issue getting the correct value from my drop down box. Basically
HI , I am getting a issue when trying to access the kABPersonInstantMessageProperty. The
Currently working on a site built in Django and i'm getting an issue when
I am working with Google Python class exercises where I am getting this issue

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.