Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
How to maintain state of WebExplorerBar in MasterPage
posted

I have a WebExplorerBar in a MasterPage used for navigation.  Upon navigating to a new page the WebExplorerBar does not postback with the previous item appearing as selected.  How do I get the WebExplorerBar to maintain it's state after postback?

  • 14517
    Suggested Answer
    Offline posted

    Hello,

    This can be accomplished by putting the Navigate URL in the value field instead the NavigateUrl field and setting the auto post back for the clicked event to true. By doing this you can code the Item Click event to save the state of the WebExplorerBar to session then use the value field to navigate to the new page. To put the WebExplorer back to the prior state you can retrieve the saved session information in the pre-render event and programatically set the state of the control.

    Thanks,

    Valerie