Re: Formatting not apply
- From: "Patrice" <nobody@xxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 16:04:02 +0100
I would try :
- to suppress "ToString" (in case 1 you are applying a numeric format to a
string as you used ToString)
- in case 2 try to specify the format as the 3rd argument of Eval (check the
doc but I don't remember to have seen a DataFormatingString member for the
Label control ?)
--
Patrice
"Esperanza" <esperanza222@xxxxxxxxxxx> a écrit dans le message de
news:%23uNnRFP9FHA.3908@xxxxxxxxxxxxxxxxxxxxxxx
> Simple question.
> The formatting code I use in my projet does not apply in my asp pages at
> run time.
> Any Idea Why ???
> Thanks in advance !!!
> Esperanza
>
> Example 1
> this.txtPrix.Text =
>
System.String.Format("{0:c}",dtrProduitVIPComposantPrix["sglPrixActuel"].ToS
> tring());
> result : 15.4567
>
> Example 2
> Another example this time in html to format a datagrig column in a
pourcent
> format
>
> <asp:Label id=dg_lblPourc runat="server" Text='<%#
> fctPourcComposant(DataBinder.Eval(Container, "DataItem.dblPourcentage"))
%>'
> DataFormatingString="{0:p}">
> result :1.7876654433
>
>
.
- Follow-Ups:
- Re: Formatting not apply
- From: Esperanza
- Re: Formatting not apply
- References:
- Formatting not apply
- From: Esperanza
- Formatting not apply
- Prev by Date: RE: Databinding problem with a dropdownlist in ascx file as it runs in
- Next by Date: Re: Databinding problem with a dropdownlist in ascx file as it runs in aspx!
- Previous by thread: Formatting not apply
- Next by thread: Re: Formatting not apply
- Index(es):
Relevant Pages
|
Loading