Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > repeater control databinding syntax issues

Reply
Thread Tools

repeater control databinding syntax issues

 
 
hazz
Guest
Posts: n/a
 
      05-01-2006
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/lib...ck(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_Re port'") %>' > +
"</TD>";
break;


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Databinding expressions are only supported on objects that have a DataBinding event jobs ASP .Net 0 09-25-2007 11:54 PM
Gridview encoding, or how to run commands before gridview's default databinding, or, how do I disable default databinding at all? Sergei Shelukhin ASP .Net 1 11-12-2006 01:43 PM
DataBinding images using Repeater Control. Is there an ImageField column? Charlie@CBFC ASP .Net 3 09-16-2006 08:41 PM
XML DataBinding to the Repeater Control; =?Utf-8?B?THVkbWFs?= ASP .Net 0 04-05-2004 04:21 PM
DataGrid Custom Column Error when DataBinding "does not contain a definition for 'DataBinding'" Earl Teigrob ASP .Net Datagrid Control 1 03-01-2004 04:52 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57