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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:45:02+00:00 2026-05-25T19:45:02+00:00

I have a div in masterpage that I set a toggle effect on it.

  • 0

I have a div in masterpage that I set a toggle effect on it. It’s like expand folders; when you click the “folders”, it will expand folders so all the sub-level folders show up.

Each sub-level folder is a hyperlink. I set the folders’ div‘s to style="display:none" so when you first load the page it won’t show all the sub-level folders. The problem is whenever I click a sub-level folder the page reloads and the folder div is hidden.

How to keep it shown when it is already in shown status when directed to another page. The folder div is in masterpage. The div has id=AppendedFolder.

I used following code but it does not work:

$(document).ready(function() {
       if ($('#AppendedFolder').is(":visible")) 
       {
            $('#AppendedFolder').show();
        }
});
  • 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-25T19:45:03+00:00Added an answer on May 25, 2026 at 7:45 pm

    If you want to save state from one page that you can use in another page, you need to save it it somewhere and then in the other pages, check that state and show the object that you wanted visible.

    The classic place to save this state is in a cookie. You would then have initialization code in your other pages that examine the value of the cookie and decide, based on the cookie value, whether to show #AppendedFolder or not.

    Some of the other ways that you can pass state to the next page are: HTML5 local storage (only available in newer browsers) or passing a query parameter to all subsequent pages that indicates the state of this visibility.

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

Sidebar

Related Questions

I have a MasterPage, with my Usercontrol inside a div. I can set visible=false
I have a standalone webform (no masterpage) that opens in a div from another
I have a partial view that has a number of Div's, each are set
I have a Masterpage that has Treeview. You can select some nodes there. Based
I have just noticed recently that my page title will reset to the standard
I have a css based asp.net masterpage. I am using a browse div located
I have a JavaScript MessageBox that keeps displaying when I click events in a
I have a master page that holds the loginview content that appears on all
I have one main masterpage and three that inherit from it; my site changes
I have a MasterPage that is two column layout, left column menu, right column

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.