First Try With DataList

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>
&nbsp;
<%# 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?
 

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

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top