tabcontainer problem

Posted by Balajikcp8 under ASP.NET AJAX on 4/23/2012 | Points: 10 | Views : 2582 | Status : [Member] | Replies : 3
this is my tab container
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0">
<cc1:TabPanel runat="server" HeaderText="TabPanel1" ID="TabPanel1">
<ContentTemplate><asp:Button ID="Button1" runat="server" Text="Button" /></ContentTemplate>
</cc1:TabPanel>

<cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="TabPanel2" Enabled="False">
<ContentTemplate >
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="TabPanel3" runat="server" HeaderText="TabPanel3"></cc1:TabPanel>
</cc1:TabContainer>

now I'm enabling "TabPanel2" from code behind

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
'TabPanel2.Enabled = True
'TabContainer1.ActiveTabIndex = 1
End Sub

while clicking the button its showing this error

Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.

How to solve this?




Responses

Posted by: GSM_GSV on: 4/23/2012 [Member] Starter | Points: 25

Up
0
Down
Please check whether you have added script manager


---------------------------------------
Live the life you've dreamed

Regards
MADHU

Balajikcp8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Balajikcp8 on: 4/23/2012 [Member] Starter | Points: 25

Up
0
Down
ya..added

Balajikcp8, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: GSM_GSV on: 4/23/2012 [Member] Starter | Points: 25

Up
0
Down
refer this site

http://www.dotnetcurry.com/ShowArticle.aspx?ID=178

---------------------------------------
Live the life you've dreamed

Regards
MADHU

Balajikcp8, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response