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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:47:11+00:00 2026-06-09T11:47:11+00:00

I have 3 tabs – and the last tab has a updatepanel asp.net: <div

  • 0

I have 3 tabs – and the last tab has a updatepanel asp.net:

<div id='tab3' class="tab-panel">
            <h3>
                Filter</h3>
            <asp:UpdatePanel ID="updFilters" runat="server">
                <ContentTemplate>
                    <asp:DropDownList ID="ddlFilterSelect" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlFilterSelect_SelectedIndexChanged"></asp:DropDownList>
                    <asp:ListBox ID="lstFilterSelect" runat="server" SelectionMode="Single" AutoPostBack="true" OnSelectedIndexChanged="lstFilterSelect_SelectedIndexChanged"></asp:ListBox>
                    <asp:Button ID="btnReset" runat="server" Text="Reset Filter" OnClick="btnReset_Click" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>

The updatepanel has a filter function with a select box changing the Select list box with a ajax call. What happens is when I do a filter the content disappears and selects the first tab but the content stays missing – once I click back on the 3 tab the content re-appears.

Please find the tab jquery code and html here: http://jsfiddle.net/zidski/LQKSt/

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

    What you need to do is to again register the jquery events when the update panel server side event is fired.

    Use ScriptManager.RegisterScript to re-register the event like

    Call this ReRegister() using ScriptManager.RegisterScript in the button click as well as dropdown selected index change it is there.

    function ReRegister()
    {
    // Tabs
    $('ul.tabs').each(function () {
        // For each set of tabs, we want to keep track of
        // which tab is active and it's associated content
        var $active, $content, $links = $(this).find('a');
    
        // Use the first link as the initial active tab
        $active = $links.first().addClass('active');
        $content = $($active.attr('href'));
    
        // Hide the remaining content
        $links.not(':first').each(function () {
            $($(this).attr('href')).hide();
        });
    
        // Bind the click event handler
        $(this).on('click', 'a', function (e) {
            // Make the old tab inactive.
            $active.removeClass('active');
            $content.hide();
    
            // Update the variables with the new link and content
            $active = $(this);
            $content = $($(this).attr('href'));
    
            // Make the tab active.
            $active.addClass('active');
            $content.show();
    
            // Prevent the anchor's default click action
            e.preventDefault();
        });
    });
    }
    

    And after the click event is fired you may need to open the third tab explicitly.

    In ScriptManager itself you can call this

    // Open third tab
    $('#tabs ul').tabs('select', 2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 tabs, created by js. Active tab has class named active and
I have three tabs with a specific filter content per tab. When i click
I have a tabs on a page: <div id=tabs> <ul> <li><a href=#tabs-1>tab1</a></li> <li><a href=#tabs-2>tab2</a></li>
I have a tabs as views in my activity. Each tab represents a ListView
I have three tabs. When I press the tab button on the bottom, is
http://rent.neighborrow.com/items/herndon need help moving the need have tabs to the right <div id=tabs style=width:350px;height:50px;>
I have tabs on the website: Cinema, Concerts, Clubs, Theatres, Children, Other. Each tab
I have three tabs that each has its own Activity. The tabs are as
I have tabs on my website, but sometimes the tab doesn't contain any info
I have an application with various tabs (on a tabhost). Each tab is an

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.