Julypobox
asked on
Formating numbers in TextBox?
I am displaying bound data in a DataRepeater. It is readonly. How can I make it so that the numbers are displayed fomrated as Currency?
ASKER
I'm not sure which code since I'm doing this in the designer
ASKER
this article seems to be about DataRepeater not TextBox formating. The question is really about TextBox formating not DataReader. Perhaps you can refer me to something that shows how to have a bound TextBox display numeric data formated as Currency.
ASKER
TKOTC:
From your reply it seems that you think I'm working in ASP. This is VB.NET.
From your reply it seems that you think I'm working in ASP. This is VB.NET.
Julypobox,
Sorry i can't be more help but this may get you on the right path for formatting a textbox to currency...
Sorry i can't be more help but this may get you on the right path for formatting a textbox to currency...
Me.TextBox1.Text = FormatCurrency("10", 2)
ASKER
Yes, but this does not work on Bound TextBoxes. This is my problem. My Controls are bound to the Dataset.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
<%#Eval("NameOfColumn", "{0:c}")%>