Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP code store in DB

Status
Not open for further replies.

tomothy

Technical User
Oct 30, 2001
40
GB
Hello,

I have a website that uses a database to retrieve ASP and HTML code to generate the page. When the code is retrieve I use Response.Write(varPageCode) to run the page code. The HTML works fine. It displays as it should but the ASP code does not. It does not process the commands or display the raw code and I get no error messages. I know the code works. So my question is this; is what I am trying to do possable? Can I load ASP code from a database into a page?

Thank you fro your time
Andrew
 
i'm no expert on asp and i'm not sure if i correctly understand your question, but if i follow correctly, i don't believe you can do it the way you're trying. response.write commands are processed by the server, but the results of response.write are sent directly to the client. so, you could use response.write to dynamically create html or javascript, since those run on the client. but you couldn't use response.write to dynamically create asp, since asp doesn't run on the client.

while i've never tried it, you should be able to accomplish what you want by using asp to create a new asp file on the server, write your asp code to that and then call that file.

glenn
 
Thats a really good idea! I recon I could make that work. Thank you very much for your help.

Andrew
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top