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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:09:14+00:00 2026-05-12T11:09:14+00:00

I’m using an update panel to have part of my page update asynchronously. Its

  • 0

I’m using an update panel to have part of my page update asynchronously. Its navigation needs to be registered when a Multiview changes its active index.

For example, when the page first loads, the Multiview Active Index = 0.
When user clicks on a link, I show the content of the View index 1.

It is really important to allow the user to go backward and forward using the browser history.

The ScriptManager is located in a master page and has its EnableHistory property set to True.

Has someone implemented it when working with Multiview?

  • 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-12T11:09:14+00:00Added an answer on May 12, 2026 at 11:09 am

    I think this should work, but you’ll need to customize it a bit. I’m doing something very similar, but I had to move away from using the multview within updatepanel due to a problem with a third-party control I had embedded within it.

    You’ll need to add a reference to your Master page in your aspx file using the asp.net tag below. And also, expose the scriptmanager as a public control in your master page so you can wire an event to it.

    In your page’s design/html code: Update the virtual path to your Master or use the Type to assign the type reference.

    <%@ MasterType VirtualPath="~/MasterPage.master" %>
    

    In your page’s init event:

    public void Page_Init(object sender, EventArgs e)
    {
        // can be done at MasterPage level if you like
        this.Master.ScriptManager.EnableHistory = true;
    }
    

    Then in your page’s load event:

    protected void Page_Load(object sender, EventArgs e)
    {              
        this.Master.ScriptManager.Navigate += 
        new EventHandler<HistoryEventArgs>(ScriptManager_Navigate);
    
        if (!this.IsPostBack && !ScriptManager.GetCurrent(this).IsInAsyncPostBack)
        {
            // load default multiview index
        }           
    }
    

    Then add this new event handler to your page. This names the item “myArgs”, you should use something a bit more intuitive for your content. In my implementation, I have a series of items (like sort order, page index, etc. separated by delims and then break them up and assign them).

    protected void ScriptManager_Navigate(object sender, HistoryEventArgs e)
    {
        if (!string.IsNullOrEmpty(e.State["myArgs"]))
        {
            string args = e.State["myArgs"];
            SetMyArgs(args);                           
        }
        else
        {
            // just load default
        }
    }
    

    The args will be the multiview index. These are just helper functions that I use. If index is the only item you care about, then you can just inline these calls to the main methods.

    private void SetMyArgs(string args)
    {
        int myIndex = int.Parse(args);
        // set multiview index here?
    }
    
    private string GetMyArgs()
    {
        return myMultiview.ActiveIndex.ToString();
    }
    

    Then when you trigger the event that changes the active index, add this to those methods

    if (this.IsAsync)
    {
        this.Master.ScriptManager.AddHistoryPoint("myArgs", GetMyArgs());
    }
    

    Hopefully, this gives you some help.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have thousands of HTML files to process using Groovy/Java and I need to
I'm making a simple page using Google Maps API 3. My first. One marker
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I am reading a book about Javascript and jQuery and using one of the
this is what i have right now Drawing an RSS feed into the php,

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.