Building a Loan Payment Calculator using ASP.NET 2.0 - The description of the payment calculator
(Page 2 of 5 )
The design view of the finPMT.aspx page is shown in the next picture. In order to enter the arguments for the function there are text boxes; these are all placed in table cells. After inserting the Table control from the Toolbox, you can change the number of rows and columns, add a border, color the body of the table, and so forth. Also by highlighting columns or rows to be merged, you can merge columns and rows from the drop-down menu which pops up when you click the Table menu item in the main menu.
The future value has been taken as optional since we all wish our loan to be completely paid off. Also whether you pay at the beginning of the month or at the end of the month makes some difference. But all these points will be included in our calculator. At run time you enter values for Rate, Nper, present (PV) and future (FV) values, pick a method of payment and click the button to get your answer. Loan and annuity are interchangeably used.
In the design view, you also see various items in the messages column as well as below the button. These will be described a little later in the tutorial. Also you see a set of test values that you can use to test your calculator. If things are working right, these test input values should give the loan payment shown

Next: The code behind the finPMT.aspx page >>
More ASP.NET Articles
More By Jayaram Krishnaswamy