Eval(manorisms("ASP.NET")

I've been doing some reading up on ASP.NET and have come across something that really scares me. One of ASP.NET's "big new things" are ASP.NET Controls. These seem to be shortcuts for developers so, for example, you can place a Validator object on the page and specify a few parameters and ASP.NET will write all of the html/javascript for you. The reason this scares me is it seems that Microsoft is taking ASP.NET the route of Frontpage, which liked to insert code that was not very cross-browser complient.

View Replies


ADVERTISEMENT

JScript Eval Bug

The eval function in JScript doesn't work according to
spec. Specifically, the function C() on page 73 of the
ECMA-262 spec doesn't return the function object
correctly under IIS 5. Binding the anonymous function to
a variable name and then evaluating that works as a
workaround, e.g.

function C() {
return eval("var x = (function (x) {return x*;}); x");
}

works. However, it should be possible to simply evaluate
a function without binding it to a name using the eval
function, especially since the spec has an explicit
example of this.

View Replies View Related

Another JScript Eval Bug

According to MSDN: "new variables or types defined in the
eval statement are not visible to the enclosing program."

However, in some cases under IIS 5, this is not the case.
Try the following program:
eval("var z = 12; 5;");
Response.Write(z);

According to the documentation this should be an error;
however, it prints "12".

View Replies View Related

Equivalent To PHP Eval Function

Is there an equivalent function in ASP which does the same as PHP's eval function?

View Replies View Related

Eval And Execute Functions

I basically want to check a multiple amount of form fields to see if these are empty, and if so, set them to "none", but it just doesn't seem to work. and I have tried so many different variants without any luck, mixing the execute command and as below with the eval command.

strChecks = "frm_tel|frm_email|frm_web|frm_infoes|frm_infode"
arrChecks = split(strChecks,"|")

for i = 0 to UBound(arrChecks)

if eval(arrChecks(i)) = "" then
eval(arrChecks(i)) = "none"
end if
next

View Replies View Related

Using Eval To Set Dynamic Object Names

I've ran into a little trouble with Eval, hoping someone can point it out to me. This code works :

var_ktml = "textarea2"
Set ktml_textarea2 = new ktml4
Eval("ktml_" & var_ktml).Init var_ktml

This code doesn't :

var_ktml = "textarea2"
Set Eval("ktml_" & var_ktml) = new ktml4
Eval("ktml_" & var_ktml).Init var_ktml

Can anyone point out the error of my ways ?

View Replies View Related

Boolean Expression Not Being Eval'd Correctly?

I have some code that checks security permissions in a DB, and before my conditional statement that checks these permissions, I am writing out both values to see what the statement looks likebefore it is evaluated.

The problem is, it seems to disregard the condition and always returns True, even if the condition should be false...any ideas? I also did some testing to assure that the length of the two values I am comparing is 1, just in case they were possibly holding spaces, and I verified they are numeric as well. I am just stumped here...

Let me also preface this code snippet by saying, I am using this asp script to generate javascript menu choices...and I did include some commented debug statements so I can see what the javascript rendered.. Code:

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved