J
Jim Heavey
Hello, I am trying the DataList control for the first time and I am not
able to get the information to show up in the control.
I know that there is data in my data table.
My DataList has a field which is bound to a column in my data table with
the following code..
<ItemTemplate>
<asp:Button Text="Edit" CommandName="Select" Runat="server">
</asp:Button>
<%# DataBinder.Eval(Container.DataItem, "Narrative" ) %>
</ItemTemplate>
I use the following code to bind my dataList to the datatable.
dlHighlights.DataSource=dtHighlights;
dlHighlights.DataBind();
The statements above execute, but no data is displayed. Any Ideas as to
why?
able to get the information to show up in the control.
I know that there is data in my data table.
My DataList has a field which is bound to a column in my data table with
the following code..
<ItemTemplate>
<asp:Button Text="Edit" CommandName="Select" Runat="server">
</asp:Button>
<%# DataBinder.Eval(Container.DataItem, "Narrative" ) %>
</ItemTemplate>
I use the following code to bind my dataList to the datatable.
dlHighlights.DataSource=dtHighlights;
dlHighlights.DataBind();
The statements above execute, but no data is displayed. Any Ideas as to
why?