Wednesday, March 28, 2012

Tab container disappears when client script added

If I write this:

<cc1:TabContainerEnableViewState="true"runat="server"ID="TabContainer1"Width="100%"

Height="490px"ScrollBars="Auto"ActiveTabIndex="1">

everything works fine. I'd like to detect client side which tab was clicked. If I write ...

<cc1:TabContainerEnableViewState="true"runat="server"OnClientActiveTabChanged="hello()"ID="TabContainer1"Width="100%"

Height="490px"ScrollBars="Auto"ActiveTabIndex="1">

... the tab container is not displayed when the page is viewed in a browser. The function being called - hello() - is just a simple

function hello()

{

alert('hello');

}

If I add 'onClientClick' to the tab itself - same thing happens. Tab container is not displayed.

<cc1:TabPanelID="tbContact"runat="server"onClientClick="hello()"HeaderText="Contact Summary">

Any idea what is wrong? From what I have read it should work.

Thanks for any help.

Hi,

Based on my test, it worked fine.

I suspect there is something else that break it. Can you provide a simple repro of the issue?

No comments:

Post a Comment