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 230501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:51:16+00:00 2026-05-11T19:51:16+00:00

i am using asp.net with c# in my aspx page i have an update

  • 0

i am using asp.net with c# in my aspx page i have an update panel in this panel i have some links to other sites, which is open on the same window. after clicking on these links me when i am getting back through browser’s back button i am not getting the same results on the update panel…

  • 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-11T19:51:17+00:00Added an answer on May 11, 2026 at 7:51 pm

    I have implement the same with the following Article, If you need further help, Plz let me know, I will provide chucks of code

    http://rchern.wordpress.com/2008/05/11/updatepanel-backforward-browser-navigation/

    First of all you have to Enable ScriptManager history EnableHistory=”true”

    In this example we are maintaing gridview paging, When user browser back button
    You have add history point after your page first time loads.

    private void AddHistoryPoint(String key, String value, String tile)
    {
        ScriptManager scm = ScriptManager.GetCurrent(this.Page);
        if ((scm.IsInAsyncPostBack == true) && (scm.IsNavigating != true))
        {
            if (pageState == null)
            {
               NameValueCollection pageState = new NameValueCollection();
            }
            if (pageState[key] != null)
            {
                pageState[key] = value;
            }
            else
            {
                pageState.Add(key, value);
            }
            scm.AddHistoryPoint(pageState, tile);
        }
    }
    
    protected void grid_PageIndexChanged1(object sender, EventArgs e)
    {
        AddHistoryPoint("pi", grdProject.PageIndex.ToString(), "Page Index- " + (grdProject.PageIndex + 1).ToString());
    }
    

    here you have to handle ScriptManager Navigate Event

         protected void ScriptManager1_Navigate(object sender, System.Web.UI.HistoryEventArgs e)
    {
        if (e.State != null)
        {
            if (e.State["pi"] != null)
            {
                grid.PageIndex = Convert.ToInt32(e.State["pi"]);
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have code like this on some aspx page in my Web Application: <asp:Content
I'm using ASP.NET AJAX. I create a .aspx page that is based on a
I am using FckEditor in Create.aspx page in asp.net mvc application. Since I need
Using a reference from... http://weblogs.asp.net/pwelter34/archive/2006/05/03/444961.aspx I have a serializable generic dictionary. One thing I
Using this tutorial: http://dotnetslackers.com/articles/ajax/Using-jQuery-with-ASP-NET.aspx The web service is invoked such as Service1.asmx/HelloToYou The default
I have an .aspx page using System.Net.Mail for sending E-Mail messages. A linkbutton click
I've a ASP.Net page (Default.aspx) which will load UserControl (ucontrol.ascx) dynamically into an UpdatePanel.
I'm using the spark view engine with my asp.net mvc application. In my aspx
I'm creating new Site Definitions using this method: http://weblogs.asp.net/paulballard/archive/2007/04/09/creating-a-custom-sharepoint-2007-portal-site-definition-using-the-portalprovisioningprovider-class.aspx and when they get created,
Using asp.net, I need to generate a snapshot of an youtube video. I have

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.