Converting format

gowthami

Member
Joined
Jun 13, 2011
Messages
8
Programming Experience
Beginner
I get a amount ($123.00)from RadmaskedtextBox.when i save the value i get INPU FORMAT STRING WAS NOT CORRECT.how can i solve this?


C#:
[U]Saveopration(receivepayment is object of saving table)[/U]
 receivepayment.CustomerBalance =Convert.ToDecimal(Math.Round(decimal.Parse(objreceive.CustomerBalance.Replace('$',' '))));

[U]GETTING VALUE
viewmodel[/U]
public String AMOUNT=" ";
[U]view.xaml.cs
[/U]
 receiveviewmode.Amount = Txt_Amount.MaskedText;
 
Top Bottom