Monday, August 16, 2010

How can i do mathematical operations in ASP?

Example i have 3 text boxes and a button, and i want to add, subtract, multiply or divide my inputs, and then the results will be displayed on another text box. how can i do it?How can i do mathematical operations in ASP?
If you are using classic ASP then you would use a scripting language like VBScript or JScript. Arithmetic operators for VBScript are listed at http://msdn.microsoft.com/en-us/library/鈥?/a> whilst this tutorial describes how to post a form to the server and access the values using the Request object http://www.tizag.com/aspTutorial/aspForm鈥?/a>How can i do mathematical operations in ASP?
It depends on which program you are using. If your are using Excel you have to input the formula that you want that cell to execute. Click on the help and type in formulas and a list of example will appear.
I would use JavaScript, something like the following:

No comments:

Post a Comment