TabContainer cannot have children of typeto be precise...
'System.Web.UI.WebControls.Repeater'
I googled quite a bit for this error, but could not find much about it.. No wonders.. It was a careless mistake that I had made. Here is the control that caused this issue....
<cc1:tabcontainer id="tabToolbox" runat="server">
<cc1:tabpanel id="pnl" headertext="Most Popular">
<contenttemplate>
<asp:repeater id="rptMostPopular" runat="server">
<itemtemplate>
<asp:linkbutton id="lnkPopular" runat="server" text=""></asp:linkbutton>
</itemtemplate>
</asp:repeater>
</contenttemplate>
</cc1:tabpanel>
<cc1:tabpanel id="pnl2" headertext="Most Viewed">
<contenttemplate>
<asp:repeater id="rptMostViewed" runat="server">
<itemtemplate>
<asp:linkbutton id="lnkPopular" runat="server" text="">&jt;/asp:linkbutton>
</itemtemplate>
</asp:repeater>
</contenttemplate>
</cc1:tabpanel>
<cc1:tabpanel id="pnl3" headertext="Most Emailed">
<contenttemplate>
<asp:repeater id="rptMostEmailed" runat="server">
<itemtemplate>
<asp:linkbutton id="lnkPopular" runat="server" text=""></asp:linkbutton>
</itemtemplate>
</asp:repeater>
</contenttemplate>
</cc1:tabpanel>
</cc1:tabcontainer>
Well...... A very simple reason for getting this error, even on the designer and also at runtime..
I FORGOT THE TAG "RUNAT=SERVER" WHILE DESCRIBING THE TAB PANELS AND therefore could not get the tab-panels to be server side...
This is what raised the issue.
A simple addition of RUNAT=SERVER solves the issue...
Hope this would help someone in need... :)
--Ashutosh
Thanks - solved my problem
ReplyDeleteHappy to know that it helped. :)
ReplyDeleteAh, I missed it on one panel too, thanks
ReplyDeletethanks a lot. you saved me for a lot of headache.
ReplyDeleteYour post saved me some digging ! Thanks
ReplyDeletethanks, woked for me. :)
ReplyDeleteYes it worked for me too. Thanks!
ReplyDeleteThanks spent a few hours digging until I came accross your blog. Thanks so much! -Erick
ReplyDeleteYour not the only one to make this mistake. Thanks for posting it. Solved my problem too!
ReplyDeleteridiculous error message - thanks though
ReplyDeleteYeah typing too fast, and forgot those 'important' properties. Nice post - thanks!
ReplyDeleteThanks. it saved my two hours :)
ReplyDeletethanks .... you helped me indeed :)
ReplyDeleteNo matter how many times I implement a tab control I ALWAYS forget the panels themselves require those parameters.
ReplyDeleteMany thanks!
thanks! this solved my problem
ReplyDeletethanks yaar
ReplyDeleteThanks, it saved my time.
ReplyDelete