473,396 Members | 1,853 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,396 software developers and data experts.

What happened to Eval, Execute and ExecuteGlobal

I have been trying to get find where the simple Eval function that was such a
great little function in asp has gone. There does not appear to be any
replacement. Is this possible??

I was using this in a number areas in my asp app and when I have gone to
upgrade I can't seem to find any similiar functionaility - There must be
something out there?

I noticed that datalist has an Eval - is this similiar - it appears to
evaulate things at run-time - could this be used as a replacement.

I can't believe that it is impossible - you are meant to be able to create
web controls - and if I am correct that the datalist has an eval, than it
should be possible to buid Eval functionality into any control - just can't
find anything on this one.

Any help would be great.

--
matthew
Nov 19 '05 #1
3 1905
=?Utf-8?B?bWF0dmRs?= <ma****@discussions.microsoft.com> wrote in
news:A9**********************************@microsof t.com:
I was using this in a number areas in my asp app and when I have gone
to upgrade I can't seem to find any similiar functionaility - There
must be something out there?
Is there a reason to use the Eval function at all??? When you use such a
function, code is not compiled, thus making it slower.
I can't believe that it is impossible - you are meant to be able to
create web controls - and if I am correct that the datalist has an
eval, than it should be possible to buid Eval functionality into any
control - just can't find anything on this one.

You can use CodeDom:

http://www.west-wind.com/presentatio...ynamicCode.htm

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
ASP is a procedural scripting technology, and the eval() function makes
sense in a procedural scripting technology. It does NOT make sense in an
object-oriented, compiled technology.

Even though ASP and ASP.Net have some things in common, they are actually
quite different. If you try to use ASP.Net like ASP, you will have great
difficulty. I know it is hard to adapt to a new programming paradigm, but
there are only 2 real choices: (1) Learn the new programming paradigm, or
(2) stick to ASP.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"matvdl" <ma****@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
I have been trying to get find where the simple Eval function that was such
a
great little function in asp has gone. There does not appear to be any
replacement. Is this possible??

I was using this in a number areas in my asp app and when I have gone to
upgrade I can't seem to find any similiar functionaility - There must be
something out there?

I noticed that datalist has an Eval - is this similiar - it appears to
evaulate things at run-time - could this be used as a replacement.

I can't believe that it is impossible - you are meant to be able to create
web controls - and if I am correct that the datalist has an eval, than it
should be possible to buid Eval functionality into any control - just
can't
find anything on this one.

Any help would be great.

--
matthew

Nov 19 '05 #3
only javascript.net still supports the eval (as its part of the language).
there are currently no ms scripting solutionas available for .net, maybe
sometime in the future.

-- bruce (sqlwork.com)
"matvdl" <ma****@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
I have been trying to get find where the simple Eval function that was such
a
great little function in asp has gone. There does not appear to be any
replacement. Is this possible??

I was using this in a number areas in my asp app and when I have gone to
upgrade I can't seem to find any similiar functionaility - There must be
something out there?

I noticed that datalist has an Eval - is this similiar - it appears to
evaulate things at run-time - could this be used as a replacement.

I can't believe that it is impossible - you are meant to be able to create
web controls - and if I am correct that the datalist has an eval, than it
should be possible to buid Eval functionality into any control - just
can't
find anything on this one.

Any help would be great.

--
matthew

Nov 19 '05 #4

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

Similar topics

12
by: lawrence | last post by:
I have a string which I want to send to eval(). How can I test it ahead of time to make sure it is valid code? I don't want to send it to eval and get parse errors. I want to do something like...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
9
by: Mike | last post by:
After reading much on the evils of eval, I have a question using my own personal use of the function... We have a reports system that will generate reports based on a number of parameters...
9
by: Jim Washington | last post by:
I'm still working on yet another parser for JSON (http://json.org). It's called minjson, and it's tolerant on input, strict on output, and pretty fast. The only problem is, it uses eval(). It's...
2
by: Mike | last post by:
Is there an equivalent in VB.Net or C# of VBScript's "Eval" and "Execute" statements? Thanks, Mike
6
by: Dan | last post by:
I need to be able to execute a command that is defined in a string. In VBScript, I can do it with the Eval function. How can I do it in VB.Net? I need something like: Dim x As Integer...
8
by: sonet | last post by:
Many Language have eval function.The C have eval function? How to execute c code in c ? Can i execute c code from a variable(like perl's code ref)? Or i must do this job by using yacc & lex ? All...
10
by: TheSaint | last post by:
Hi, It seems to be strange that give me syntax error inside an eval statement. I'm looking at it carefully but I can't see any flaw. Here it's part of the code: for nn in stn_items: value=...
6
Frinavale
by: Frinavale | last post by:
Apparently I have a lot of questions today regarding JavaScript security. I've implemented a JavaScript Object that intercepts page submits (postbacks) and then displays a UI prompting the user...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.