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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T13:33:53+00:00 2026-06-07T13:33:53+00:00

I am using Ajax tab control, which includes grids in each tab. The grid

  • 0

I am using Ajax tab control, which includes grids in each tab. The grid have drop down list and button and I want to fire gridview’s RowCommand event on button click of gridview Row. But the problem is whenever I click on the button, Tabcontainet_ActiveTabChanged event is fired and grid view is bind again before it fire the RowCommand event.

I can not understand why this event is fired automatically even though I am not firing it intentionally. How can I fire RowCommand event in such cases??
I tried both with update panel and without update panel.

  • 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-07T13:33:55+00:00Added an answer on June 7, 2026 at 1:33 pm

    That’s very strange but TabContainer fires ActiveTabChanged event on each postback if active tab changed or if actual ActiveTabIndex property value equals to 0. I can’t find out any reason for such behavior so use solution below on on your own risk. Actually there are two solutions available: the first one is to download AjaxControlToolkit sources, change TabContainer control LoadPostData method and use custom dll :

    Actual method:

    protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
    {
        int tabIndex = ActiveTabIndex;
        bool result = base.LoadPostData(postDataKey, postCollection);
        if (ActiveTabIndex == 0 || tabIndex != ActiveTabIndex)
        {
            return true;
        }
        return result;
    }
    

    Just remove ActiveTabIndex == 0 condition from the code above.

    Or you can create your own class inherited from the TabContainer, override that method and use this class instead of the default:

    namespace AjaxControlToolkit
    {
        /// <summary>
        /// Summary description for MyTabContainer
        /// </summary>
        public class MyTabContainer : TabContainer
        {
            protected override bool LoadPostData(string postDataKey, System.Collections.Specialized.NameValueCollection postCollection)
            {
                int tabIndex = ActiveTabIndex;
    
                if (SupportsClientState)
                {
                    string clientState = postCollection[ClientStateFieldID];
                    if (!string.IsNullOrEmpty(clientState))
                    {
                        LoadClientState(clientState);
                    }
                }
    
                if (tabIndex != ActiveTabIndex)
                {
                    return true;
                }
                return false;
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using VS2010, C#, ASP.NET, I've inserted Ajax Control Toolkit Tab Container which works
I am using Ajax tab container control with 3 tabs. I have placed a
I am using jQuery tab control: http://jqueryui.com/demos/tabs/#ajax My design is: <div class=container2> <!-- review
I have encountered a slightly bizarre bug while using the ajax control toolkit TabPanel.
I have used Ajax Tab Control in one of my pages. It has got
I am using Tab control of ajax tool kit and it is working fine
I have a set of jQuery UI tabs that each load project.php using ajax.
I have an ASP.net page. That has an Ajax Toolkit Tab Control. That has
Here is my problem: The Problem I have created Tabs using jQuery which is
I'm creating a web application which loads tabs using AJAX. My problem is that

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.