Unnecessary "True" in asp controls: For example, <asp:Label ID="lbllogin" runat="server" Text="Login Here"
"True" "True" "True" ForeColor="#660033"></asp:Label>.
Solution: Remove "True".
Table contains border property however not well formed, e.g. <table style="width: 100%;"
border:"1">.
Solution: change ':' to '='
TabPanel has been added with wrongprefix "asp". e.g. <asp:TabPanel runat="server" HeaderText="Login Form" ID="TabPanel1">
Solution: Change "asp" to "ajaxToolkit"
Below is the modified code block. Please check if it works in your side.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
55 Points
191 Posts
ajax tab container error occur the server tag not well formed?
Jul 22, 2020 07:32 AM|prabhjot1313|LINK
ajax tab container does not run error occur the server tag is not welll formed
here is my code
aspx
<div>
<br />
<ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1" Height="229px" Width="353px">
<asp:TabPanel runat="server" HeaderText="Login Form" ID="TabPanel1">
<ContentTemplate>
<asp:Label ID="lbllogin" runat="server" Text="Login Here" "True" "True" "True" ForeColor="#660033"></asp:Label>
<table style="width: 100%;" border:"1">
<tr>
<td><asp:Label ID="lbluname" runat="server" Text="UserName" "True" ForeColor="#000099"></asp:Label></td>
<td><asp:TextBox ID="tbuname" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblpass" runat="server" Text="Password" "True" ForeColor="#000099"></asp:Label></td>
<td><asp:TextBox ID="tbpass" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td></td>
<td><asp:Button ID="Button1" runat="server" Text="Submit" BackColor="#0099FF" "True" ForeColor="#000099" Height="27px" /></td>
</tr>
</table>
</ContentTemplate>
</asp:TabPanel>
<asp:TabPanel ID="TabPanel2" runat="server" HeaderText="Registration Form">
<ContentTemplate>
<asp:Label ID="lblRegistration" runat="server" Text="Registration Here" "True" "True" "True" ForeColor="#660033"></asp:Label>
<table style="width: 100%;" border:"1">
<tr>
<td><asp:Label ID="lblUserName" runat="server" Text="UserName" "True" ForeColor="#000099"></asp:Label></td>
<td><asp:TextBox ID="tbUserName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblPassword" runat="server" Text="Password" "True" ForeColor="#000099"></asp:Label></td>
<td><asp:TextBox ID="tbPassword" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblFname" runat="server" Text="FirstName" "True" ForeColor="#000099"></asp:Label></td>
<td><asp:TextBox ID="tbFname" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td><asp:Label ID="lblLastName" runat="server" Text="LastName" "True" ForeColor="#000099"></asp:Label></td>
<td><asp:TextBox ID="tbLastName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td> </td>
<td><asp:Button ID="btnsave" runat="server" Text="Save" BackColor="#0099FF" "True" ForeColor="#000099" Height="27px"/></td>
</tr>
</table>
</ContentTemplate>
</asp:TabPanel>
</ajaxToolkit:TabContainer>
</div>
Contributor
2830 Points
839 Posts
Re: ajax tab container error occur the server tag not well formed?
Jul 22, 2020 08:50 AM|Sean Fang|LINK
Hi prabhjot1313,
There are several errors in your codes:
Below is the modified code block. Please check if it works in your side.
Hope this can help you.
Best regards,
Sean