repeater control databinding syntax issues

H

hazz

I would really appreciate syntax -double quote - single quote - help with
the line # 2 below that uses DataBinder.Eval.
Line #1 works fine. It's from MSDN sample
http://msdn2.microsoft.com/en-us/library/0e39s2ck(VS.80).aspx
Line #2 receives the error 'Too many characters in character literal"
Thank you so much. -Greg

public void InstantiateIn(System.Web.UI.Control container)
{
Literal lc = new Literal();
switch (templateType)
{
case ListItemType.Item:
1. // lc.Text = "<TR><TD>Item number: " + itemcount.ToString() +
2. lc.Text = "<TR><TD>Name : <%#
DataBinder.Eval(Container.DataItem,'"Include_in_Report'") %>' > +
"</TD>";
break;
 

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,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top