Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2005, 10:56 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Include file in HTML content

Hello,


I am working on a system where full pages content is saved in database i.e

<html>
 <head>
   <title></title>
   -- Javascript include files --
  </head>
 <body>
   --- Content ---
   --- asp include files containing HTML ---
 </body>
</html>


And these pages from database, are then called on website. i.e

"SELECT PAGE_CONTENT FROM tblContent"

RESPONSE.WRITE(PAGE_CONTENT)



The problem is using this technique, the asp include files are not working and are not showing the content within them.
So how can I execute the include file?


Any idea..
Any help..

Will really be appriciated

Thanks
Zeeshan Ahmed

 
Old July 25th, 2005, 05:44 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

You have the entire body of the page including html tags inside the database? IMO this is very un-common. Pages that are very difficult to change, styles, .... The list goes on. I am intrigued, what are you achieving over and above how a dynamic page would normally be created?

;;;So how can I execute the include file?
you dont have it inside asp delimiters do you? If not, what is your page showing? Errors? (on the page or within the source code after the page is rendered). If the answeres are no and no errors, strip that crazy content cell back, browse, add to it, browse, add a bit more, browse etc...

Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I take HTML content in XSLT? nadavvin XSLT 7 September 6th, 2006 09:18 AM
difference between include file & include virtual crmpicco Classic ASP Basics 2 January 23rd, 2006 11:50 AM
Executing asp Include file withing HTML content itHighway HTML Code Clinic 4 August 7th, 2005 01:03 PM
Content-type = text/html tarran C# 3 December 5th, 2004 08:36 AM
Virtual Include PHP file in HTML aingalsbe PHP How-To 0 May 3rd, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.