ASP Code not interpreted

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ASP Code not interpreted

    Hi there,

    I am storing asp code as content in a table field (MS SQL Server).
    When I try to display it via a HTML page only the HTML is interpreted,
    but not the asp code.
    What is the problem?

    Regards
    George Kentman Guest

  2. Similar Questions and Discussions

    1. Power of Interpreted Languages
      Some general questiosn concerning interpreted lanaguages (and their JIT couterparts). How far do you think an interpreted language can go? In...
    2. Stuff inside <? ... ?> not being interpreted
      Hi all. I have some scripts that switch between plain HTML and PHP. eg: <img src="<? echo($myimage) ; ?>" alt="myimage.jpg"> On my old...
    3. PHP - Interpreted or Compiled Language
      "Binay Agarwal" <binay@m-web.com> wrote in message news:013e01c361f9$982f3f10$5500a8c0@graphx... Beeing compiled or interpreted is not...
    4. [PHP] PHP - Interpreted or Compiled Language
      Thanks jay for quick response I'll tell you what really forced me to go in the matter of interpreted or Compiled language. In the heart of PHP...
    5. [PHP] PHP - Interpreted or Compiled Language
      PHP is most definitely an interpreted language. -Jackson On Thursday 14 August 2003 8:37, breath wrote: -- jackson miller cold feet...
  3. #2

    Default Re: ASP Code not interpreted

    Please give some exemples of the content of the record and the asp code to
    show.


    John Guest

  4. #3

    Default Re: ASP Code not interpreted

    ASP only runs once. You can't store ASP code in the database, retrieve it
    using ASP, and then expect it to run.

    Can you give a better description of exactly what you are trying to
    accomplish? What ASP code is in the database, and what do you expect to
    happen?

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)




    "George Kentman" <Kentman@gmx.de> wrote in message
    news:cf1f7203.0407210204.4a0536f3@posting.google.c om...
    > Hi there,
    >
    > I am storing asp code as content in a table field (MS SQL Server).
    > When I try to display it via a HTML page only the HTML is interpreted,
    > but not the asp code.
    > What is the problem?
    >
    > Regards

    Aaron [SQL Server MVP] Guest

  5. #4

    Default Re: ASP Code not interpreted

    On 21 Jul 2004 03:04:01 -0700, [email]Kentman@gmx.de[/email] (George Kentman) wrote:
    >I am storing asp code as content in a table field (MS SQL Server).
    >When I try to display it via a HTML page only the HTML is interpreted,
    >but not the asp code.
    >What is the problem?
    Probably what you're attempting to do with it. If the ASP is content
    in the database and you're retrieving that content in an ASP page, the
    ASP has already been processed by the time the content is sent to the
    browser. Since ASP has to be processed by the server, sending it to
    the browser as content from a database won't work.

    Perhaps if you went into detail on what it was, how you wanted to use
    it and why, we could suggest a wrokable alternative.

    Jeff
    Jeff Cochran Guest

  6. #5

    Default Re: ASP Code not interpreted

    [email]Kentman@gmx.de[/email] (George Kentman) wrote in message news:<cf1f7203.0407210204.4a0536f3@posting.google. com>...
    > Hi there,
    >
    > I am storing asp code as content in a table field (MS SQL Server).
    > When I try to display it via a HTML page only the HTML is interpreted,
    > but not the asp code.
    > What is the problem?
    >
    > Regards
    It's like most of you guessed ;)
    I am storing ASP Code which may contain Code for the execution of
    SQL-Statements e.g. retrieving client data from the database and I
    want that information to be displayed on HTML pages. The reason why I
    am storing the code as content is the cms application that stands
    behind it and is responsible for the HTML design.

    Greetings
    George Kentman Guest

  7. #6

    Default Re: ASP Code not interpreted

    > I am storing ASP Code which may contain Code for the execution of
    > SQL-Statements e.g. retrieving client data from the database
    Why not store JUST the SQL statements? Then you can pull them from the
    database like this:

    set rs = conn.execute("SELECT sqlStatement FROM sometable WHERE ... ")
    newSQL = rs(0)
    set rs = conn.execute(newSQL)
    do while not rs.eof
    ...
    rs.movenext
    loop

    --
    [url]http://www.aspfaq.com/[/url]
    (Reverse address to reply.)


    Aaron [SQL Server MVP] Guest

  8. #7

    Default Re: ASP Code not interpreted

    On 22 Jul 2004 01:28:28 -0700, [email]Kentman@gmx.de[/email] (George Kentman) wrote:
    >Kentman@gmx.de (George Kentman) wrote in message news:<cf1f7203.0407210204.4a0536f3@posting.google. com>...
    >> Hi there,
    >>
    >> I am storing asp code as content in a table field (MS SQL Server).
    >> When I try to display it via a HTML page only the HTML is interpreted,
    >> but not the asp code.
    >> What is the problem?
    >>
    >> Regards
    >
    >It's like most of you guessed ;)
    >I am storing ASP Code which may contain Code for the execution of
    >SQL-Statements e.g. retrieving client data from the database and I
    >want that information to be displayed on HTML pages. The reason why I
    >am storing the code as content is the cms application that stands
    >behind it and is responsible for the HTML design.
    You'll likely need to split your pages then, the first request is for
    the info to build the real page, with a Server.Transfer to call that
    second page. If you don't need the ASP you could store the SQL
    queries and call them from the database as part of your query.

    Jeff
    Jeff Cochran Guest

Posting Permissions

  • You may not post new threads
  • You may 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