S
SJ
I'm using codebehind to populate my datalist, but having a lot of trouble
keeping the
indentation of the datalist in place. This is what i'm doing right now :
<asp:datalist id="LogList" Runat="server" width=150 Itemstyle-wrap=true>
<ItemTemplate>
<table cellSpacing="0" cellPadding="0" width="150" border="0"
class="bodytext">
<tr>
<td width="40"> </td>
<td width="40" align="left">
<asp:checkbox id="chkbox" Runat="server"
Checked="False"></asp:checkbox></td>
<td align="left" width="30">
<asp:label id="VIP" Runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"isVIP")%>'>
</asp:label></td>
<td align="left" width="40">
<asp:HyperLink ID="isVM" Runat=server
ImageUrl='<%#DataBinder.Eval(Container.DataItem,"isVM")%>'
NavigateUrl='<%#DataBinder.Eval(Container.DataItem,"vmURL")%>'>
</asp:HyperLink>
</td>
</tr>
</table>
</ItemTemplate>
</asp:datalist>
If I exceed the assigned width(40 in this case) of a column, instead of the
text wrapping to the next line,
the indentation goes totally crazy.
thanks,
-SJ
keeping the
indentation of the datalist in place. This is what i'm doing right now :
<asp:datalist id="LogList" Runat="server" width=150 Itemstyle-wrap=true>
<ItemTemplate>
<table cellSpacing="0" cellPadding="0" width="150" border="0"
class="bodytext">
<tr>
<td width="40"> </td>
<td width="40" align="left">
<asp:checkbox id="chkbox" Runat="server"
Checked="False"></asp:checkbox></td>
<td align="left" width="30">
<asp:label id="VIP" Runat="server"
Text='<%#DataBinder.Eval(Container.DataItem,"isVIP")%>'>
</asp:label></td>
<td align="left" width="40">
<asp:HyperLink ID="isVM" Runat=server
ImageUrl='<%#DataBinder.Eval(Container.DataItem,"isVM")%>'
NavigateUrl='<%#DataBinder.Eval(Container.DataItem,"vmURL")%>'>
</asp:HyperLink>
</td>
</tr>
</table>
</ItemTemplate>
</asp:datalist>
If I exceed the assigned width(40 in this case) of a column, instead of the
text wrapping to the next line,
the indentation goes totally crazy.
thanks,
-SJ