repeater control databinding syntax issues

Discussion in 'ASP .Net' started by hazz, May 1, 2006.

  1. hazz

    hazz Guest

    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;
     
    hazz, May 1, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?THVkbWFs?=

    XML DataBinding to the Repeater Control;

    =?Utf-8?B?THVkbWFs?=, Apr 5, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    3,009
    =?Utf-8?B?THVkbWFs?=
    Apr 5, 2004
  2. Replies:
    0
    Views:
    861
  3. Charlie@CBFC
    Replies:
    3
    Views:
    1,679
    Charlie@CBFC
    Sep 16, 2006
  4. jobs
    Replies:
    0
    Views:
    1,632
  5. Earl Teigrob
    Replies:
    1
    Views:
    408
    Shravan
    Mar 1, 2004
Loading...

Share This Page