This ASP.NET code shows how to solve a mathematical expression entered on the page at run time. This small sample demonstrates a method that allows online creation of ASPX web pages. This type of code allows user input that can utilize full coding power - for example entering a formula to be calculated on run time. This code can be changed in order to run complex mathematical calculations like Newton Rafson (Solving equations) , Rashmor (Integration) algorithms etc.
Most of the complied programming tools do not allow input of non-string / number inputs. However in many cases especially engineering and mathematical tasks this is required. The fact that new ASPX pages are compiled at run time allow us to use any code object as input.
Using the code
Put the files in any folder and open as a web page the Calc.aspx page. The Folder must have Read/Write permission for the ASP.NET user.
Points of Interest
The main idea behind this code is that one can create code by using code:
ObjWr.WriteLine("Response.Write(" & TextBox1.text & ")")
On every run the code creates a new random page. I did not delete those pages so you can take a look at them. In a real life application those pages should be deleted when the session ends.
This is an initial version that demonstrates CJA process. In the future I will add more complex mathematical algorithms that exploit this remarkable capability of ASP.NET.