Hi Tarran!
You could create a new PUBLIC FUNCTION in your code-behind file which contains all your Trims and Replaces.
Assume your public function is called doSomething():
webform.aspx.vbpublic function doSomething(byval cValue as string) as string
return trim(cValue)
end function
webform.aspx... doSomething(DataBinder.Eval(Container.DataItem,"FieldName"))
HTH
>Hi All,
>
>I'm binding a few records to a asp:Repeater using
DataBinder.Eval(Container.DataItem, "FieldName")
and I am curious how I would manipulate this information that is being binded?
>
>How would I use formatting like Trim() and Replace() on a Data Item in this case?
>
>Any help is always appreciated.
>
>Many Thanks,
>Tarran
robert.oh.