Forums

ASP

This topic is locked

ASP embedded in database recordset not processed

Posted 12 Feb 2003 12:29:48
1
has voted
12 Feb 2003 12:29:48 Matthew Maguire posted:
Hello everyone.

I'm designing an entirely database driven website. The HTML for each 'page' is taken from a database and loaded into part of the index page. I want to be able to include ASP in the HTML taken from the database but when the page loads the server does not process the ASP.

Does anyone know how I can force the server to process the information from recordset?

I would appreciate any help you can give me - if I can't get this function to work I'm going to have to re-think my entire site!

Regards,
Matthew Maguire

Replies

Replied 12 Feb 2003 16:58:24
12 Feb 2003 16:58:24 Owen Eastwick replied:
This will never fly.

Think about it:

1. Client requests a page.

2. Web server processes any ASP code, including that which retreives any values from the database before sending resulting output of the ASP code and any recordsets to the client as HTML.

So, you can't have ASP code retreiving ASP code from a database field, anything from the database will just treated as text because by the time it's included in the page, the processing phase of page's generation will have completed.

Regards

Owen.

-------------------------------------------------------------------------------------------
Used programming books and web development software for sale (UK only):
www.tdsf.co.uk/tdsfdemo/Shop.htm


Multiple Parameter UD4 / Access 2000 Search Tutorial:
www.tdsf.co.uk/tdsfdemo/
Replied 12 Feb 2003 18:07:22
12 Feb 2003 18:07:22 Matthew Maguire replied:
Thanks Owan - looks like I have to come up with a different plan!

Thanks for your help.

Regards,
Matthew Maguire

Reply to this topic