Tab changes even after firing OnClientActiveTabChange event

Last post 07-02-2009 11:03 PM by chetan.sarode. 2 replies.

Sort Posts:

  • Tab changes even after firing OnClientActiveTabChange event

    07-02-2009, 5:10 AM
    • Member
      2 point Member
    • irfanraza
    • Member since 12-14-2005, 8:53 AM
    • Nagpur, India
    • Posts 12

    I had a master page with two sections. First top section contains a web user control having ajax tab container. The second section contains the ContentPlaceHolder to show different pages. I am using OnClientActiveTabChange event to navigate to different pages just using java script. The problem is that if i am clicking on third tab then the respective page is loaded but the tab changes to the first one. Could anyone help me?

     

    Here is the layout of my master page.

    +===============================+

    |         Web User Control with tab container   |

    +===============================+

    |                                                                       |

    |         ContentPlaceHolder                               |

    +===============================+

    Thanks and regards

    Mohammad Irfan

    Filed under:
  • Re: Tab changes even after firing OnClientActiveTabChange event

    07-02-2009, 10:09 AM
    Answer
    • Star
      9,828 point Star
    • chintanpshah
    • Member since 11-19-2008, 5:39 AM
    • Ahmedabad
    • Posts 1,765

    Set AutoPostBack="false" for TabContainer. 

    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: Tab changes even after firing OnClientActiveTabChange event

    07-02-2009, 11:03 PM
    Answer

     If you dont want the ActiveTabChanged (Event) which is server side event then set the

    AutoPostBack="false" of TabContainer so that it will not make any postback

     http://www.asp.net/AJAX/AjaxControlToolkit/Samples/Tabs/Tabs.aspx

     

     

    Chetan Sarode
    Software Engineer,
    Approva Systems Pvt Ltd,
    Pune, India.
Page 1 of 1 (3 items)