wpf - Need a label to output a number. C# -


i trying have label output monthly rate after has been calculated through formula. keep getting error when try output number.

double top = _principal * _interestrate / 1200.00; double bottom =( 1 - math.pow(1.0 + _interestrate / 1200.0, -12.0     _numberofyears)); double _monthlyrate = top / bottom; lblmonthlyrate  = _monthlyrate ("c"); 

thanks help!

lblmonthlyrate  = _monthlyrate ("c"); 

should (this windows forms):

lblmonthlyrate.text = _monthlyrate.tostring("c"); 

edit per update answer:

did lose reference system.web.ui.webcontrols?

edit 2:

i'm dummy. wpf? need (this wpf):

lblmonthlyrate.content = _montlyrate.tostring("c"); 

Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -