Hi,
I am setting a value to a textbox and need to format it like this:
0,000.00
No leading currency sign.
Here is what I have tried with no luck:
txtLoanAmount.Text = (String.Format("{0:c}", parameterLoan_Amount.Value.ToString()));
txtLoanAmount.Text = (String.Format("{0:n}", parameterLoan_Amount.Value.ToString()));
txtLoanAmount.Text = (String.Format("{0:#,###}", parameterLoan_Amount.Value.ToString()));
All of these have NO effect on my value.
Anyone know what I am doing wrong?
Thanks.
I am setting a value to a textbox and need to format it like this:
0,000.00
No leading currency sign.
Here is what I have tried with no luck:
txtLoanAmount.Text = (String.Format("{0:c}", parameterLoan_Amount.Value.ToString()));
txtLoanAmount.Text = (String.Format("{0:n}", parameterLoan_Amount.Value.ToString()));
txtLoanAmount.Text = (String.Format("{0:#,###}", parameterLoan_Amount.Value.ToString()));
All of these have NO effect on my value.
Anyone know what I am doing wrong?
Thanks.