Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataBinder.Eval
Message
From
14/02/2005 06:46:30
 
 
To
14/02/2005 06:06:52
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00986546
Message ID:
00986557
Views:
13
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.vb
public 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform