473,378 Members | 1,397 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Evaluating Formulas in ASP.NET

Hello everyone, I was wondering if anyone knows of a way to evaluate a
string function? For example I have a string like "(150/50) +2" and would
like to evaluate the result in a ASP.NET webpage. Thanks for any help.
Nov 20 '05 #1
4 1124
Cor
Hi

Because it is a web, I think it is easy to use Java, have a look at this
page

http://dbforums.com/arch/219/2002/12/578053

How you can use this in Asp.net can you find here

http://msdn.microsoft.com/library/de...javascript.asp

I hope this helps a little bit?

Cor
Hello everyone, I was wondering if anyone knows of a way to evaluate a
string function? For example I have a string like "(150/50) +2" and would
like to evaluate the result in a ASP.NET webpage. Thanks for any help.

Nov 20 '05 #2
* "microsoft.private.windows.netserver.setup" <ra***********@shaw.ca> scripsit:
Hello everyone, I was wondering if anyone knows of a way to evaluate a
string function? For example I have a string like "(150/50) +2" and would
like to evaluate the result in a ASP.NET webpage. Thanks for any help.


<http://www.palmbytes.de/content/dotnet/mathlib.htm>

Download:

<http://www.palmbytes.de/content/dotnet/dl/mathlib.zip>

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Nov 20 '05 #3
Thank you for your response. I did look through the content, but to no
avail. I am actually trying to use the JavaScript eval() function in a
ASP.NET web page. I need to compute the formula result and then save it to
a database. There must be a way to do this. I tried to use the dll in the
ASP.NET page, but failed to load every single time. Any help would be
greatly appreciated. Thanks.

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c2*************@ID-208219.news.uni-berlin.de...
* "microsoft.private.windows.netserver.setup" <ra***********@shaw.ca>

scripsit:
Hello everyone, I was wondering if anyone knows of a way to evaluate a
string function? For example I have a string like "(150/50) +2" and would like to evaluate the result in a ASP.NET webpage. Thanks for any help.


<http://www.palmbytes.de/content/dotnet/mathlib.htm>

Download:

<http://www.palmbytes.de/content/dotnet/dl/mathlib.zip>

--
Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>

Nov 20 '05 #4
I Actually got it working, thanks so much.

"microsoft.private.windows.netserver.setup" <ra***********@shaw.ca> wrote in
message news:%2***************@TK2MSFTNGP11.phx.gbl...
Hello everyone, I was wondering if anyone knows of a way to evaluate a
string function? For example I have a string like "(150/50) +2" and would
like to evaluate the result in a ASP.NET webpage. Thanks for any help.

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: kaosyeti | last post by:
is there an easy way to evaluate a calculated control step by step? i have a lot of long expressions in a lot of my controls and if there's an error, tracking it down is a PAIN. excel has a...
11
by: rob | last post by:
I have the following scenario. A user requests some math calculations from a server. The data and a library of basic formulas reside on the server. Now the user should be able to create more...
11
by: rob | last post by:
I have the following scenario. A user requests some math calculations from a server. The data and a library of basic formulas reside on the server. Now the user should be able to create more...
4
by: John Brock | last post by:
I have a .NET application that, among other things, creates Excel workbooks, and I have run into a very strange problem involving formulas on one worksheet that reference values on another...
2
by: titbits | last post by:
Hi, I am trying to evaluate complex formulas with 'names'. I know 'names' is not yet supported by POI-3.1FINAL. Still any suggestions of workaround could help. Thanks in advance... titbits ;)
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.