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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:38:53+00:00 2026-05-20T10:38:53+00:00

I have a TabContainer with three pages of input fields. For each TabPanel there’s

  • 0

I have a TabContainer with three pages of input fields. For each TabPanel there’s a set of ValidatorCalloutExtenders (one for every validator on the panel).

When I validate the page the validation only works as it should for the current panel. For all hidden TabPanels all the validator-tooltips are visible in a mess when that tab is selected.

I have put a button on the first and second tab pages that looks roughly like this:

<input type="button" class="next" value="Next" onclick="Page_ClientValidate('Contact'); if(Page_IsValid) { SelectTab(1); }" />

where selecttab looks like this:

function SelectTab(ix)
{
    var container = $find('<%=createUserTabs.ClientID%>');
    container.set_activeTabIndex(ix);
}

Pushing only the buttons, the tab pages actually work with the validation.
But when I click the tabs instead of buttons, hell brakes loose again.

First there are no way to prevent a tab switch.
Secondly if I add validation to OnClientActiveTabChanged=”tabChanged” all the validators are piled up in a mess on the validated tab, as it’s not displayed.

function tabChanged(sender, args) {
    tabIndex = sender.get_activeTabIndex();

    if (!Page_ClientValidate('Contacts')) {
        if (tabIndex != 0) {
            sender.set_activeTabIndex(0);
            Page_ClientValidate('Contacts'); //Doesn't fix the validator soup
        }

        return;
    }

Did anyone get ValidatorCalloutExtenders working with TabContainer?

Is it worth bothering with ajaxControlToolkit at all or should I rewrite to jQuery without blinking? (Serious question… This is a webforms project where a lot if ajaxControlToolkit is in use, but I’m feeling constrained and countered by it.)

  • 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-20T10:38:53+00:00Added an answer on May 20, 2026 at 10:38 am

    Nevermind… I’m so thick.

    var getouttahere = false;
    
    function tabChanged(sender, args) {
    
        if (getouttahere) {
            return;
        }
        getouttahere = true;
    
        tabIndex = sender.get_activeTabIndex();
    
        do {
    
            sender.set_activeTabIndex(0);
            if (!Page_ClientValidate('Contact') || 0 == tabIndex) {
                break;
            }
    
            sender.set_activeTabIndex(1);
            if (!Page_ClientValidate('Delivery') || 1 == tabIndex) {
                break;
            }
    
            sender.set_activeTabIndex(2);
            if (!Page_ClientValidate('Invoicing')) {
                break;
            }
    
        } while (false);
    
        getouttahere = false;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tab panels, and in each of these there is a user
I have a TabContainer with different tabs (ContentPanes). I am loading each type dynamically
I have this hierarchy, a tabcontainer(tcmain) under that a tabpanel(tpnlRaiseMRF) under that an asp
Looking for some implementation advice: I have a page that has a 3-tab ajaxToolkit:TabContainer.
I'm wondering if someone can help me with this. I have three TabPanels depending
I have a TabContainer inside a Multiview. When I bring up a specific editing
VS2005, ASP.NET, C#, IIS6 Hello friends, I have a master page divided into three
I am trying to fix an issue. I have an ASP.NET Ajax's TabContainer on
I have a tabcontainer which contains 5 tabs. I want to clear all data
I have a div (id=tabContainer) where I defined some css like below: #tabContainer .ui-state-active

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.