Reylin Mathew

Reylin Mathew

  • NA
  • 347
  • 71.4k

design error for datalist

Feb 12 2019 8:50 AM
<asp:DataList ID="BranchDetails" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" CssClass="text-view" ExtractTemplateRows="true" >
<ItemStyle BackColor="transparent" />
<ItemTemplate >
<table class="auto-style1" style="border:solid 5px white; width:100%;height:100%; ">
<tr>
<td >
<table class="auto-style1" style="border:solid 10px #E6E6FA ;width:100%;height:100%;" >
<tr >
<td >
<table class="auto-style1" style="border:solid 4px #E6E6FA ; background-color:#E6E6FA;width:100%;height:100%;">
<tr >
<td style="font-size: medium" >
<asp:Label ID="Label3" runat="server" Font-Bold="True" Font-Size="Small" ForeColor="#000066" Text='<%# Eval("BranchName") %>'></asp:Label>
</td>
</tr>
<tr >
<td style="font-size:x-small" >
<asp:Label ID="Label5" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
</td>
</tr>
<tr>
<td style="font-size: x-small">
<asp:Label ID="Label6" runat="server" Text='<%# Eval("City") %>'></asp:Label>
</td>
</tr>
<tr>
<td style="font-size: x-small">
<asp:Label ID="Label1" runat="server" Text="Contact Person:" Font-Bold="True" ForeColor="#000066"></asp:Label>
<asp:Label ID="Label13" runat="server" Font-Bold="True" ForeColor="#000066" Text='<%# Eval("ContactPerson") %>'></asp:Label>
</td>
</tr>
<tr style="font-size: x-small">
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>
 
This is my design code.. binding code is success..but i get this tye of error? "
A Table control was not found in the template for 'BranchDetails' for an item of type 'ListItemType.Item'."
How can i solve this pblm?

Answers (4)