Link to home
Create AccountLog in
Avatar of Julypobox
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?
Avatar of TKOTC
TKOTC
Flag of Canada image

if you post code I can help better, but it should be something like

<%#Eval("NameOfColumn", "{0:c}")%>
Avatar of Julypobox
Julypobox

ASKER

I'm not sure which code since I'm doing this in the designer
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.
TKOTC:
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...
Me.TextBox1.Text = FormatCurrency("10", 2)

Open in new window

Yes, but this does not work on Bound TextBoxes. This is my problem. My Controls are bound to the Dataset.
ASKER CERTIFIED SOLUTION
Avatar of NicholasMilam
NicholasMilam
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer