How execute a script at execution time ?RSS

4 replies

Last post Jun 22, 2004 08:30 AM by sreedhark

  • How execute a script at execution time ?

    Jun 21, 2004 05:43 PM|jksp|LINK

    I'd like to know how can I execute a script inputed by user in an application at execution time ? Like this: Dim x as string x = "MsgBox(""Teste"")" Execute(x) OR something like a VBA script tool inside the application that can be used at execution time by the user application. I'm trying to create some places like events that will execute this scripts, so the user can config some tools inputing a script in a Setup Page and it will be executed at execution time. I'm sorry by my English, I'm from Brazil and I'l appreciate any help. Thanks a lot. Juscelino São Paulo - Brazil.
  • Re: How execute a script at execution time ?

    Jun 21, 2004 10:42 PM|Ken Schaefer|LINK

    You can use Execute() in your ASP code. However msgbox() will not work - ASP is server-side code, and you can't pop-up a msgbox on the server (well you can, but you don't want to) Cheers Ken
  • Re: How execute a script at execution time ?

    Jun 22, 2004 08:07 AM|jksp|LINK

    Thank's by your help, but I need to do this in ASP.NET using VB.NET language. Thank's Juscelino São Paulo - Brazil
  • Re: How execute a script at execution time ?

    Jun 22, 2004 08:30 AM|Ken Schaefer|LINK

    So why are you asking in a Classic ASP forum? Try one of the many ASP.NET forums... Cheers Ken
  • Re: How execute a script at execution time ?

    Jun 22, 2004 08:30 AM|SreedharK|LINK

    You have to do this in client side script (As you want message box display on web) Ex: Let's say on button click you want message box, then Keep below syntax code in form load event. Assuming Button1 is your server side button Button1.Attributs.Add("onClick","alert('test');")
    Sreedhar
    http://www.w3coder.org
    weblog http://weblogs.asp.net/skoganti