DataList in Table

D

dik

Hi

I have a problem with my datalist that does not show up anymore in my table:

<table>
<asp:DataList id="DataList1" Visible="true" RepeatLayout="Table" RepeatDirection="Vertical" runat="server"
BorderStyle="Solid" Width="488px" Height="160px">
<HeaderTemplate>
<tr>
<td>
<b>Hi</b></td>
<td>
<b>I</b></td>
<td>
<b>dont see anything</b></td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td>
<asp:Label id="Label6" runat="server">
<%# DataBinder.Eval(Container.DataItem,
"Details") %>
</asp:Label>
</td>
<td>
<asp:Label id="Label1" runat="server">
<%# DataBinder.Eval(Container.DataItem,
"ContactInfo") %>
</asp:Label>
</td>
<td>
<asp:CheckBox id="chkbox1" Runat="server" autopostback="false" OnCheckedChanged="Check_Clicked"></asp:CheckBox>
</td>
</tr>
</ItemTemplate>
</asp:DataList>
</table>

if i remove the table tags then i can see my datalist!!

ch Dikkie

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
P

Patrick Olurotimi Ige

Why are putting <Table> tag before the DataList?
Add yout table TAG i the Itemtemplate
Hope that helps
PAtrick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top