Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 16812 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET AJAX > tabcontainer problem ...
Balajikcp8

tabcontainer problem

Replies: 3 | Posted by: Balajikcp8 on 4/23/2012 | Category: ASP.NET AJAX Forums | Views: 999 | Status: [Member] | Points: 10  


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?


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

GSM_GSV
GSM_GSV  
Posted on: 4/23/2012 8:10:21 AM
Level: Starter | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Balajikcp8
Balajikcp8  
Posted on: 4/23/2012 8:11:36 AM
Level: Starter | Status: [Member] | Points: 25

ya..added

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

GSM_GSV
GSM_GSV  
Posted on: 4/23/2012 8:18:48 AM
Level: Starter | Status: [Member] | Points: 25

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. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/18/2013 7:38:49 PM