Eval For VB.NET

Today I was converting some ASP code to ASP.NET when I ran into a problem with the eval statement which is not supported in the NET Framework. Fortunately, I found a clever solution on the Internet at http://odetocode.com/Articles/80.aspx. You can compile that C# code into a DLL and put it into the bin directory of your ASP.NET web site. Then your VB.NET code will have access to functions that perform the same purpose as eval:

OdeToCode.Utility.Evaluator.EvalToDouble(variable)

This entry was posted in ASP.NET. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit exceeded. Please complete the captcha once again.