Professional Web Applications Themes

Running a stored ASP code. Is it possible? - ASP Database

There is Eval and Execute that you can use. IE: sCommand = "Response.Write ""Hi there""" Execute sCommand I can't imagine why you have things setup the way you describe though! Ray at work "Rami" <microsoft.com> wrote in message news:com... ...

  1. #1

    Default Re: Running a stored ASP code. Is it possible?

    There is Eval and Execute that you can use. IE:

    sCommand = "Response.Write ""Hi there"""
    Execute sCommand

    I can't imagine why you have things setup the way you describe though!

    Ray at work

    "Rami" <microsoft.com> wrote in message
    news:com... 


    Ray Guest

  2. #2

    Default Re: Running a stored ASP code. Is it possible?

    On Wed, 8 Sep 2004 11:47:15 -0700, "Rami"
    <microsoft.com> wrote:
     

    No. The page is processed by the ASP.DLL, which accesses the
    database. The database has ASP code, which can't be processed since
    the page was already processed.

    You need to use one ASP page to dynamically build the second from code
    in the database, then execute the new page. A Server.Transfer might
    help, but I suspect this will be a lot more trouble for you than
    whatever issue you think you're trying to resolve.

    Jeff
    Jeff Guest

  3. #3

    Default Re: Running a stored ASP code. Is it possible?

    You might consider using server side includes instead of pulling all of
    your hair out in frustration from that method.

    Rami wrote:
     

    joker Guest

  4. #4

    Default Re: Running a stored ASP code. Is it possible?

    If it hasn't been asked - What is the business objective that you're
    trying to accomplish?

    Rami wrote: 
    David Guest

  5. #5

    Default Re: Running a stored ASP code. Is it possible?

    Hi,
    It has been a while since you you wrote me your answere but I just wanted to
    let you know I’m using execute and it is doing the job for me.

    As to way do it,

    My stored it db site should have a standard look at all pages , which is
    changing according to the month.
    Some of the pages should use a dynamic data stored in another database.
    If I was writing an asp page to access these pages, I will have to modify
    them every time.
    It was some work to write the right code that will be executed, but the way
    it is now, I don’t have to do anything, so I’m happy …
    Thanks
    Rami



    "Ray Costanzo [MVP]" wrote:
     
    >
    >
    >[/ref]
    Rami Guest

  6. #6

    Default Re: Running a stored ASP code. Is it possible?

    Hi,
    It has been a while, but you might be interested it what I did, according to
    Ray’s suggestion.


    "joker" wrote:
     
    >
    >[/ref]
    Rami Guest

  7. #7

    Default Re: Running a stored ASP code. Is it possible?

    Hi,
    It has been a while, but you might be interested it what I did, according to
    Ray’s suggestion.


    "Jeff Cochran" wrote:
     
    >
    > No. The page is processed by the ASP.DLL, which accesses the
    > database. The database has ASP code, which can't be processed since
    > the page was already processed.
    >
    > You need to use one ASP page to dynamically build the second from code
    > in the database, then execute the new page. A Server.Transfer might
    > help, but I suspect this will be a lot more trouble for you than
    > whatever issue you think you're trying to resolve.
    >
    > Jeff
    >[/ref]
    Rami Guest

  8. #8

    Default Re: Running a stored ASP code. Is it possible?

    Hi,
    It has been a while, but you might be interested it what I did, according to
    Ray’s suggestion.


    "David C. Holley" wrote:
     
    >[/ref]
    Rami Guest

Similar Threads

  1. How can I execute code stored in variable
    By Robert MacDonald in forum PHP Development
    Replies: 0
    Last Post: August 1st, 10:03 AM
  2. Replies: 4
    Last Post: July 31st, 04:51 PM
  3. Is Stored Procedure Running??
    By Jason Burton in forum ASP Database
    Replies: 6
    Last Post: July 8th, 12:50 AM
  4. Oracle stored procedures vs Running from a flat .sql file
    By computer person in forum Oracle Server
    Replies: 12
    Last Post: January 8th, 10:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139