DataBinder.Eval Problem

  • Thread starter Thread starter Bruce A. Julseth
  • Start date Start date
B

Bruce A. Julseth

Text='<%# DataBinder.Eval(Container.DataItem, "price", "(0:c2)") %>'

Produces (0:c2) in the output column

Text='<%# DataBinder.Eval(Container.DataItem, "price") %>

Produces xx.xx00 in the output column

What's wrong?

I note that in my "Currently insalled progams" I have

Microsoft .NET Framework(English) v1.0.0375 (no size listed)
Microsoft .NET Framework 1.0 Hotfix (KB886906) Size 1,721.00MB
Microsoft .NET Framework 1.1 Size
1,721.00MB
Microsoft .NET Framework 1.1 Hotfix (KB886903) Size 1,721.00MB

Would this have anything to do with my problem? Should I uninstall the first
2 items of the list above?

Thank you....
 
Bruce,
Have you tried:
Text='<%# DataBinder.Eval(Container.DataItem, "price", "{0:c2}") %>'

Note the use of the curly braces {} instead of parathesis ().

Hope this helps
Jay
 
Jay B. Harlow said:
Bruce,
Have you tried:


Note the use of the curly braces {} instead of parathesis ().

Hope this helps
Jay

Curly braces was the problem.. THANKS!!!!!!!!!!

Bruce
 
Back
Top