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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T07:53:12+00:00 2026-05-12T07:53:12+00:00

I am currently working on an advanced web application that contains a number of

  • 0

I am currently working on an advanced web application that contains a number of Dynamically Rendered pages. The pages are standard pages which contain a place holder into which the main content is rendered from a combination of Xml and Xslt.

I have recently been attempting to add a ASP.Net Ajax Toolkit collapsible entender to allow the collapsing and extending of the panels which are dynamically rendered. I have added the extender markup to our main xslt template and all is fine. Well all is fine until a post back takes place and the panels return to their intial state. So, for example, if I load the page with the panels collapsed then after postback the page fails to reset any open panels, The problem is caused by the fact that I store the dynamic content in the viewstate itself and once the page is loaded just retrieve it from the viewstate rather than re-render the Xml.

Phew…. there is the background to the problem.

Now the main question. How on earth can you interact with the extender in Javascript. I have spent days convinced that I could cache the state in a page variable client side and then reapply the state post postback. However, there appears to be no documentation or knowledge of how to accomplish this. The best I have found is some very simple javascript which will allow you to register a couple of events to catch when the panel is extended or collapsed.

All I want to do is interact and cache each panels state. Can anyone suggest anything?

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

    OK, Just in case anyone else needs to achieve similar I have now got it working.

    After much research I found that you can hook up to a some client side events using either method described here.

    So I decided the best way was to programtically add a couple of hidden fields (ASP.Net HiddenField) to the page in the Page_Load() event and add the names of each extender as a delimited string in one field and then have a field per extender to hold the extenders state. Once the page is posting back the value of each extenders hidden field is retrieved from the Request.Form object (the key of which is hidden fields ID) otherwise if it is the initial load just handle a default value.

    Then I just created a simple client side script which handled the onExpand and onCollapse events and update the value of the specific extenders hidden field.

    In the pageLoad event of the client script I just set the entenders state based on it’s hidden fields value.

    Simple really…. should have thought of it like that to start with!

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

Sidebar

Related Questions

I'm currently working on a membership system for my web application, which is based
We're working on some Ruby on Rails web application which is currently in English
Currently I am working on a ajax-based web application that does some XHR. I
Am currently working on an application that requires users to submit posts and comments
So I'm currently working on a web app that I'm just going to use
I am currently working on a web application where only single pixel changes are
I'm currently working on a social web application using python/django. Recently I heard about
Im currently working with an API which requires we send our collection details in
Im currently working on a site that you can upload large files.. on local
I am currently working on a project that consists of an ASP.NET MVC 2.0

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.