Use ASP scripts from a Database?
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13018
Printed Date: 30 March 2026 at 9:50pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Use ASP scripts from a Database?
Posted By: wolfie
Subject: Use ASP scripts from a Database?
Date Posted: 17 December 2004 at 6:37am
I was wondering if it is at all possible to use ASP scripts in a database that will then execute when called from the database.
Basically, I have an article scirpt on my site, which stores articles
in an Access DB. Now, sometimes I want to include an ASP script in the
article, but I am not sure if there is a way of doing this or not.
Cheers for any help!
------------- Wolfie--[ http://www.wolfweb.co.uk - WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
Replies:
Posted By: weppos
Date Posted: 17 December 2004 at 1:38pm
The most simply way is to write the content in a text file and execute it.
You can't execute the code on the fly from the database.
|
Posted By: MadDog
Date Posted: 17 December 2004 at 2:04pm
Yes it is possible.
Execute rsDatabase("Field") |
------------- http://www.iportalx.net" rel="nofollow">
|
Posted By: wolfie
Date Posted: 17 December 2004 at 2:15pm
MadDog wrote:
Yes it is possible.
Execute rsDatabase("Field") |
|
Can you give me a bit more explination on that, I don't get it.
------------- Wolfie--[ http://www.wolfweb.co.uk - WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
Posted By: MadDog
Date Posted: 17 December 2004 at 2:21pm
Execute is what you use to execute the code from the database. That was your question.
------------- http://www.iportalx.net" rel="nofollow">
|
Posted By: Gullanian
Date Posted: 18 December 2004 at 5:55am
|
The execute function basically takes a string and runs it as ASP code.
|
|