Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataBinder.Eval
Message
De
14/02/2005 06:46:30
 
 
À
14/02/2005 06:06:52
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00986546
Message ID:
00986557
Vues:
12
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform