I'd like to store the contents of classic ASP pages in a table in a database, and have the ability to dynamically retrieve said contents and execute on the fly. Is this possible?
标签:
asp-classic
相关问题
- If condition not working in classic ASP
- IE8 Form Not Submitting (Intermittent)
- Server.Transfer from ASP to ASP.Net
- Classic Asp date comparison not working correctly
- Using asp objects in .NET - Max compatibility
相关文章
- Can a VBScript function return a dictionary?
- ZURB Foundation, switching tab programmatically
- Accessing COM Component from Classic ASP which con
- Classic ASP/VBScript implementation of Crockford
- Caching recordsets in ASP Classic?
- Classic ASP - how to save data to CSV file with UT
- Handling hashed passwords stored as varbinary in S
- Classic ASP #include virtual not working
Somebody was able to make the Execute (actually ExecuteGlobal) concept work. I tried using this some years ago as a test and it did indeed work. I believe the real problem would come when you want to debug inside your 1000 line ExecuteGlobal statement.
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=7651&lngWId=4
Basically, the asp text is parsed and items within <%=%> and <% %> are handled appropriately.
For instance
and
You can get the text from the database, save it to a temporal .asp file in the website, and then execute a Server.Execute(tempfile). Don't forget to delete the tempfile...
You are probably looking for the "Execute" statement.
This will even work if your db-driven ASP has "Option Explicit" at the very top.
That said, the general idea of having ASP code live inside a database sounds a bit iffy to me, but to each their own, and I wish you luck!