Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Use ASP scripts from a Database?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Use ASP scripts from a Database?

 Post Reply Post Reply
Author
wolfie View Drop Down
Groupie
Groupie


Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote wolfie Quote  Post ReplyReply Direct Link To This Post 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--[
Back to Top
weppos View Drop Down
Groupie
Groupie


Joined: 23 May 2003
Status: Offline
Points: 173
Post Options Post Options   Thanks (0) Thanks(0)   Quote weppos Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3009
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 2:04pm
Yes it is possible.

Execute rsDatabase("Field")

Back to Top
wolfie View Drop Down
Groupie
Groupie


Joined: 18 November 2002
Location: United Kingdom
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote wolfie Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 2:15pm
Originally posted by MadDog 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--[
Back to Top
MadDog View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 01 January 2002
Status: Offline
Points: 3009
Post Options Post Options   Thanks (0) Thanks(0)   Quote MadDog Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2004 at 2:21pm
Execute is what you use to execute the code from the database. That was your question.
Back to Top
Gullanian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 04 January 2002
Location: England
Status: Offline
Points: 4373
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gullanian Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2004 at 5:55am
The execute function basically takes a string and runs it as ASP code.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.