TabContainer (AjaxControl) - How to causes validation when change tab

Posted on 2009-04-16
Last Modified: 2012-05-06

I have a TabContainer, and inside, in each table, are some fields like text box and dropdowns.

When I click a tab, the event for tab changed (OnActiveTabChanged) is catched.

So, what I need is, before that event, the TabContainer needs to validate all the fields there are in the current tab, but, this component don't have any properties like "CausesValidation" (like a asp button).

So, what I miss?
Question by:fabiomenezes
    1 Comment
    LVL 39

    Accepted Solution

    If you do not have CausesValidation on a certain control, you can always manually use the method Validate in the beginning of the method. This will cause the same chain of validations as CausesValidation would do:

    If you want to validate only a particular validation group (assuming your selected tab only has a specific validation group per tab or something), you can do:

    After that, you can use this.IsValid the way you normally do.

    -- Abel --

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now