suicidaltendencies
Programmer
The data show on the datagrid if I remove the asp:label from around the DataBinder but if I include the asp:label my data disappears.
What is wrong?
Thanks,
Harold
<asp:templatecolumn headertext="Date" itemstyle-verticalalign="top" headerstyle-horizontalalign="center">
<itemtemplate>
<asp:label id="lblDate" runat="server"><%# DataBinder.Eval(Container.DataItem, "Date", "{0:MM/dd/yyyy}"
%></asp:label>
</itemtemplate>
</asp:templatecolumn>
<asp:templatecolumn itemstyle-verticalalign="top" headertext="Customer Name" headerstyle-horizontalalign="center">
<itemtemplate>
<asp:label id="lblName" runat="server"><%# DataBinder.Eval(Container.DataItem, "Name"
%></asp:label>
</itemtemplate>
</asp:templatecolumn>
What is wrong?
Thanks,
Harold
<asp:templatecolumn headertext="Date" itemstyle-verticalalign="top" headerstyle-horizontalalign="center">
<itemtemplate>
<asp:label id="lblDate" runat="server"><%# DataBinder.Eval(Container.DataItem, "Date", "{0:MM/dd/yyyy}"

</itemtemplate>
</asp:templatecolumn>
<asp:templatecolumn itemstyle-verticalalign="top" headertext="Customer Name" headerstyle-horizontalalign="center">
<itemtemplate>
<asp:label id="lblName" runat="server"><%# DataBinder.Eval(Container.DataItem, "Name"

</itemtemplate>
</asp:templatecolumn>