J
Joey
Hi There,
I have an application in which i'm using nested datalists to display data, I
call an OnItemDataBound event to display data based on the rows returned
from the 2nd list (dlistcolour) , I am facing some performance issues as I
use a sql statment for each list so I can acheive the display I want (see
below), I'm wondering if the performance will be increased if I use a
datareader & a table to display the data? Could someone tell me the best wat
to acheive this, without the perfomance hit.
Joey - thanks in advance
--output
Datalist1 | value | value | value
dtlistsColour |value | dtlistqoh | value | value | value
value
--------
value
-------
<asp:datalist id="Datalist1" runat="server" ShowFooter="True"
HorizontalAlign="Center" Font-Size="11pt" Font-Name="Verdana"
repeatdirection="Horizontal"
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "size") %>
</ItemTemplate>
</asp:datalist>
<asp:datalist id="dtlistsColour" runat="server" ItemStyle-Height="20"
HorizontalAlign="left" Font-Size="11pt" Font-Name="Verdana"
OnItemDataBound="BuildqohGrid" BorderStyle="Solid" Width="100%">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "colourdesc") %>
<asp:datalist id="dtlistqoh" RepeatDirection="Horizontal"
runat="server" Font-Name="Verdana" Font-Size="11pt" HorizontalAlign="Right"
ItemStyle-VerticalAlign="top" ItemStyle-Width="20">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "qoh") %>
</ItemTemplate>
</asp:datalist>
</ItemTemplate>
</asp:datalist>
I have an application in which i'm using nested datalists to display data, I
call an OnItemDataBound event to display data based on the rows returned
from the 2nd list (dlistcolour) , I am facing some performance issues as I
use a sql statment for each list so I can acheive the display I want (see
below), I'm wondering if the performance will be increased if I use a
datareader & a table to display the data? Could someone tell me the best wat
to acheive this, without the perfomance hit.
Joey - thanks in advance
--output
Datalist1 | value | value | value
dtlistsColour |value | dtlistqoh | value | value | value
value
--------
value
-------
<asp:datalist id="Datalist1" runat="server" ShowFooter="True"
HorizontalAlign="Center" Font-Size="11pt" Font-Name="Verdana"
repeatdirection="Horizontal"
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "size") %>
</ItemTemplate>
</asp:datalist>
<asp:datalist id="dtlistsColour" runat="server" ItemStyle-Height="20"
HorizontalAlign="left" Font-Size="11pt" Font-Name="Verdana"
OnItemDataBound="BuildqohGrid" BorderStyle="Solid" Width="100%">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "colourdesc") %>
<asp:datalist id="dtlistqoh" RepeatDirection="Horizontal"
runat="server" Font-Name="Verdana" Font-Size="11pt" HorizontalAlign="Right"
ItemStyle-VerticalAlign="top" ItemStyle-Width="20">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "qoh") %>
</ItemTemplate>
</asp:datalist>
</ItemTemplate>
</asp:datalist>