Hi,
I have bound a repeater to an objectdatasource to display comments at
the end of my blog. People may enter their email or omit it.
When the repeater is rendering, I would like to evaluate for the
existence of the email address, and if it exists, write:
<a href="mailto:bob@email.com">Bob</a> writes...
Otherwise, ouput:
Bob writes...
I tried trapping for the OnItemCreated event on the repeater, but I
don't know how to access the comment's data from there. Should I
instead be using an event of the objectdatasource and writing to
private variables and reference those in the repeater?
Regards,
Chris
sloan - 05 Mar 2008 19:00 GMT
You can follow a discussion here:
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_t
hread/thread/ab5f7665ffa4ed52/3af59c250d1a6045?hl=en&lnk=st&q=sloan+href+asp.net
#3af59c250d1a6045
> Hi,
>
[quoted text clipped - 18 lines]
>
> Chris