community server - Eval inside an ASP.net repeater doesn't work inside another control -


i have reapter control custom server side control inside of it. when place code:

<%# eval("dateadded") %> 

inside item template of repeater works fine, when place inside custom server control inside repeater, doesn't work. possible parent.eval() or container.eval() context of reapeter rather custom control?

the repeater databound, control placing eval statement in isn't. you'll need pass value control using property.

for example:

<uc1:mycontrol myproperty='<%# eval("dateadded") %>' /> 

you can access myproperty property inside control access value.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -