PDA

Click to See Complete Forum and Search --> : executing a string?


NHSDirectVB
Feb 3rd, 2005, 06:10 AM
Hello there :

I've got a string that contains VBScript that I want to execute, how do execute it in ASP.net ?

in my old ASP version I just used to execute(string) ,.. now it seems to want to sever.execute({file}) ,.. so any ideas on how I execute a string? Thanks.

rdove
Feb 3rd, 2005, 08:01 AM
The execute, executeglobal, and eval functions are not part of ASP. They are part of the VBScript engine:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/scriptinga.asp

ASP.NET does not rely on parts of that technology as ASP does. So in order to use those functions will will need to add a reference to it in your program.

NHSDirectVB
Feb 3rd, 2005, 08:12 AM
Great,.. thanks for that. :)

Graff
Feb 3rd, 2005, 04:21 PM
I'll execute the string for you for 100 bucks if you want me to make it look like an accident it will cost you more... sorry couldn't resist.