J
Jim Bancroft
Hi everyone,
This is a silly one I'm sure, but I'm having a whale of a time putting some
text into my asp checkbox. Here's what I'd like to do:
<asp:CheckBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,
"OptionLabel")%> Fields' ID="chkDBFields"/>
....unfortunately, it doesn't work. The DataBinder text is evaluated
literally, so all I get on-screen is the word "Fields". And whenever I try
playing with the quotes I receive various syntax errors. Could someone show
me how to get this to work, so that I have my data-bound field and the word
"Fields" appended to it in the checkbox text? Thanks very much.
This is a silly one I'm sure, but I'm having a whale of a time putting some
text into my asp checkbox. Here's what I'd like to do:
<asp:CheckBox runat="server" Text='<%#DataBinder.Eval(Container.DataItem,
"OptionLabel")%> Fields' ID="chkDBFields"/>
....unfortunately, it doesn't work. The DataBinder text is evaluated
literally, so all I get on-screen is the word "Fields". And whenever I try
playing with the quotes I receive various syntax errors. Could someone show
me how to get this to work, so that I have my data-bound field and the word
"Fields" appended to it in the checkbox text? Thanks very much.