Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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
  #1 (permalink)  
Old July 24th, 2005, 04:30 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Executing asp Include file withing 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

  #2 (permalink)  
Old July 25th, 2005, 03:17 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I don't think you've given enough information.
 
  • Is your database connection working?
  • Does a simple "Hello World" ASP page work?
  • Does a simple ASP just retrieving the content work?
  • Can you show the actual place where the content is injected?




--

Joe (Microsoft MVP - XML)
  #3 (permalink)  
Old July 25th, 2005, 05:59 PM
Friend of Wrox
Points: 6,664, Level: 34
Points: 6,664, Level: 34 Points: 6,664, Level: 34 Points: 6,664, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2004
Location: Sydney, NSW, Australia.
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

itHighway

mmmmm - first time in the client side forum for me. The first post I see is one I have spent time answering 2 minutes ago - in the ASP How to section. Why take more peoples time than you need? Please dont cross post.

Wind is your friend
Matt
  #4 (permalink)  
Old August 2nd, 2005, 10:56 PM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hello itHighway,
you can't execute asp inculde files in html pages, if you want to execute asp fiels you have to use .asp extenstion,

surendran
(Anything is Possible)
  #5 (permalink)  
Old August 7th, 2005, 01:03 PM
Friend of Wrox
 
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default

Here is how we can execute asp file in HTML page

<script language=javascript src="http://190.00.154.1/src.asp"></script>



Similar Threads
Thread Thread Starter Forum Replies Last Post
Executing .vbs file from asp dsmike2008 Classic ASP Professional 0 July 17th, 2008 11:01 PM
Include file in HTML content itHighway Classic ASP Basics 1 July 25th, 2005 05:44 PM
Virtual Include PHP file in HTML aingalsbe PHP How-To 0 May 3rd, 2004 10:37 AM
include php inside the asp file karib Classic ASP Databases 2 November 25th, 2003 03:51 PM





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