G
Guest
I'm having trouble with my repeater:
I'm binding my Repeater control to an OleDbDataReader object. My ASPX looks
like this:
<asp:Repeater ID="Rptr" runat="server">
<ItemTemplate>
<asp:Label ID="LB" runat="server" Text="" />
<br/>
<%# Eval("TextBody") %>
<br />
<%# Eval("ID") %>
<br />
<%# Eval("Owner") %>
<br />
<%# Eval("CreateDate") %>
</ItemTemplate>
</asp:Repeater>
If I do the above, all works fine. BUT, if I try to set the Text property of
a control such as...
<asp:Label ID="LB" runat="server" Text="<%# Eval("Owner") %>" />
then, I get "The server tag is not well formed" for that Label. Is this
because of the double-quotes that have to be inside the Eval("")?
Also, one other thing: How can I do date formatting for date values coming
back?
Thanks.
Alex
I'm binding my Repeater control to an OleDbDataReader object. My ASPX looks
like this:
<asp:Repeater ID="Rptr" runat="server">
<ItemTemplate>
<asp:Label ID="LB" runat="server" Text="" />
<br/>
<%# Eval("TextBody") %>
<br />
<%# Eval("ID") %>
<br />
<%# Eval("Owner") %>
<br />
<%# Eval("CreateDate") %>
</ItemTemplate>
</asp:Repeater>
If I do the above, all works fine. BUT, if I try to set the Text property of
a control such as...
<asp:Label ID="LB" runat="server" Text="<%# Eval("Owner") %>" />
then, I get "The server tag is not well formed" for that Label. Is this
because of the double-quotes that have to be inside the Eval("")?
Also, one other thing: How can I do date formatting for date values coming
back?
Thanks.
Alex