Re: Formatting not apply
- From: "Esperanza" <esperanza222@xxxxxxxxxxx>
- Date: Tue, 29 Nov 2005 10:34:36 -0500
It's working (both)!!
Thank you so much !!
Esperanza
"Patrice" <nobody@xxxxxxxxxxx> a écrit dans le message de
news:eJkqkYP9FHA.1292@xxxxxxxxxxxxxxxxxxxxxxx
> 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
> >
> >
>
>
.
- References:
- Formatting not apply
- From: Esperanza
- Re: Formatting not apply
- From: Patrice
- Formatting not apply
- Prev by Date: Here is an example (start) of a gridview with expandable fields (not rows)
- Next by Date: Re: SQLClient output parameters - Regular SELECT?
- Previous by thread: Re: Formatting not apply
- Next by thread: Maintain viewstate
- Index(es):
Relevant Pages
|