Theme:
v
Using APL+Win from an ASP.Net Web Page

This page demontrates how APL+Win can be used to perform calculations in the background of an ASP.Net Web Page.

If the Recalculate when changing values check box is checked, here is what happens whenever you click on one of the SpinEdit buttons or whenever you check or uncheck the Periods are Years check box:

  1. values are read from the various fields in the form and sent to an APL+Win workspace running in the background
  2. the CalcPayments APL function is called with these values passed as its arguments
  3. the CalcPayments result is sent back to the C# Code Behind page (AplLoanSheet.aspx.cs) and displayed in the grid

APL+Win is started and the APL+Win workspace is automatically loaded when the AplLoanSheet.aspx page is loaded.

Similarly and this is the only tricky part of this application, APL+Win is automatically closed whenever the user either navigates to another page or Web site, or when the user closes his browser.

Purchase Amount:
+
-
Years in Loan
Maximum:
+
-
Minimum:
+
-
Interest Rates
Maximum:
+
-
Minimum:
+
-
Calc Payments
Clear Grid
0345
3581624426935937
3.5586044471236383
4590484515836833
4.5594944560737286
5599424605937742
5.5603924651338202
6608444697038666