Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a gridview in tab container but it showing me an error that
"TabContainer cannot have children of type 'System.Web.UI.WebControls.GridView".


ASP.NET
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    
       <asp:TabContainer ID="TabContainer1" runat="server">
       <asp:TabPanel>
       <HeaderTemplate>List Of Clients</HeaderTemplate>
       <contenttemplate>
           <asp:GridView ID="GridView1" runat="server">
           
       </contenttemplate>



Above is my sample code.plz help me.

code blocks and question from title
Posted
Updated 12-Apr-14 9:12am
v3
Comments
[no name] 12-Apr-14 15:35pm    
The TabPanels need runat="server"

http://forums.asp.net/t/1241612.aspx?TabContainer+cannot+have+children+of+type+System+Web+UI+WebControls+TextBox+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900