I have a repeater
like the following,
<asp:Repeater ID="rptEntries" runat="server">
<ItemTemplate>
<asp:LinkButton ID="lnk1" runat="server" Text=""></asp:LinkButton>
</ItemTemplate>
</asp:Repeater>
Now, I want to bind the Text value of LinkButton
s with the following,
<%# DataBinder.Eval(Container.DataItem, "EntryText") %>
However, I get the double quotes problems, when I do the following,
Text="<%# DataBinder.Eval(Container.DataItem, "EntryText") %>"
How to solve this issue?
Use a combination of double and single quotes:
Text='<%# DataBinder.Eval(Container.DataItem, "EntryText") %>'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With