Author |
Topic Search Topic Options
|
wolfie
Groupie
Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
|
Post Options
Thanks(0)
Quote Reply
Topic: Use ASP scripts from a Database? 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--[ WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
|
weppos
Groupie
Joined: 23 May 2003
Status: Offline
Points: 173
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
MadDog
Mod Builder Group
Joined: 01 January 2002
Status: Offline
Points: 3009
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 December 2004 at 2:04pm |
Yes it is possible.
Execute rsDatabase("Field") |
|
|
|
wolfie
Groupie
Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
|
Post Options
Thanks(0)
Quote Reply
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--[ WolfWeb.co.uk ]
PHP, .net--[ beginner ] ASP, VB, C, SQL--[ intermediate ] X/D/HTML, CSS, WML, XML--[
|
|
MadDog
Mod Builder Group
Joined: 01 January 2002
Status: Offline
Points: 3009
|
Post Options
Thanks(0)
Quote Reply
Posted: 17 December 2004 at 2:21pm |
Execute is what you use to execute the code from the database. That was your question.
|
|
|
Gullanian
Senior Member
Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
|
Post Options
Thanks(0)
Quote Reply
Posted: 18 December 2004 at 5:55am |
The execute function basically takes a string and runs it as ASP code.
|
|