C
Chris Kennedy
I have a datalist in which I have the data bound in the HTML. I want to
utilise the functionality of the selected style property. The HTML below
does this. I can't figure out how to space the HTML into nicely formatted
columns. If I use tables the formatting of the text disappears, applying a
stylesheet to the item style with padding merely move the whole lot over not
the individual items. Can anyone point me in the right direction? Regards,
Chris.
<asp
ataList id="DataList1" runat="server" Width="526px" Height="44">
<HeaderTemplate>
<asp:Label id="Label1" runat="server">TimeSheetID</asp:Label>
<asp:Label id="Label2" runat="server">Job Description</asp:Label>
<asp:Label id="Label4" runat="server">Duration</asp:Label>
<asp:Label id="Label5" runat="server">Start Date</asp:Label>
</HeaderTemplate>
<ItemStyle Font-Bold="True" ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="SteelBlue"></SelectedItemStyle>
<ItemTemplate>
<%# Databinder.eval(Container,"DataItem.tsheetid") %>
<%# Databinder.eval(Container,"DataItem.jobdesc") %>
<%# Databinder.eval(Container,"DataItem.duration") %>
<%# Databinder.eval(Container,"DataItem.startdate") %>
asp:LinkButton id="lnkTsheetid" runat="server" CssClass="stdtext">Get
Timesheet Details</asp:LinkButton>
</ItemTemplate>
</asp
ataList>
utilise the functionality of the selected style property. The HTML below
does this. I can't figure out how to space the HTML into nicely formatted
columns. If I use tables the formatting of the text disappears, applying a
stylesheet to the item style with padding merely move the whole lot over not
the individual items. Can anyone point me in the right direction? Regards,
Chris.
<asp
<HeaderTemplate>
<asp:Label id="Label1" runat="server">TimeSheetID</asp:Label>
<asp:Label id="Label2" runat="server">Job Description</asp:Label>
<asp:Label id="Label4" runat="server">Duration</asp:Label>
<asp:Label id="Label5" runat="server">Start Date</asp:Label>
</HeaderTemplate>
<ItemStyle Font-Bold="True" ForeColor="Black"
BackColor="White"></SelectedItemStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White"
BackColor="SteelBlue"></SelectedItemStyle>
<ItemTemplate>
<%# Databinder.eval(Container,"DataItem.tsheetid") %>
<%# Databinder.eval(Container,"DataItem.jobdesc") %>
<%# Databinder.eval(Container,"DataItem.duration") %>
<%# Databinder.eval(Container,"DataItem.startdate") %>
asp:LinkButton id="lnkTsheetid" runat="server" CssClass="stdtext">Get
Timesheet Details</asp:LinkButton>
</ItemTemplate>
</asp