I think the correct one should be.
<%# GetDisplayText(DataBinder.Eval(Container.DataItem, "Title") )%>
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.com
"Peter Morris [Droopy eyes software]" <pete@notformethanks_droopyeyes.com>
wrote in message news:uugdkGJeEHA.2440@tk2msftngp13.phx.gbl...[color=blue]
> I am trying to convert DB text such as < and > to html text such as <
> > etc.
>
> I created a method
>
> public String GetDisplayText(String originalText)
>
> which replaces all of the necessary characters, but how would I replace[/color]
the[color=blue]
> following databound line?
>
> <%# DataBinder.Eval(Container.DataItem, "Title") %>
>
> If I use <%= then I cannot get access to Container, and if I use <%# then[/color]
I[color=blue]
> cannot use GetDisplayText
>
> Can you help?
>
> Thanks
>
>
> --
> Pete
> -------
> Read/Write .NET articles
>
http://www.howtodothings.com/showart...ubcategory=132
>
>[/color]