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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIV element and include directive that contains asp file - Can't figure it out.

Status
Not open for further replies.

AlStl

MIS
Oct 2, 2006
83
0
0
US
I am trying to improve an existing website for a non-profit (free job) that has used tables for everything in it and behaves different on different browsers.

My goal is to use CSS for formatting and use to DIV elements to position every section on the page. I am new to CSS and use of DIV element and the problem I am facing is: how to use asp pages within div elements?

Current website has extensively used ASP pages for pretty much everything and they are embedded in tables.

I thought I could just use include directive as used in current websites and things will work fine. But it ain't so...ASP pages are not displaying.

For the life of me I cannot figure out how to use asp pages within div elements. Here is an example (I would not bother you to include CSS file for now). I tried to include asp file with an iframe, but it only worked in IE and not in Firefox...weird. Keep in mind I am doing this all on my local machine.

I do not have access to the server yet. This asp file (test.asp) could contain reference to other asp ex: connection.asp, which is used to connect to the DBs..

Can some please help? I cannot re-write asp pages.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<html xmlns="<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>TESTING THE SITE</title>
<title>TESTING</title>

<!-- index.html style sheeet -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" /
<body>
<div id="outer">
<div id="top-banner">
<div id="logo"> <a href=""><img src="images/Logo.png" alt="logo"/></a> </div>
</div>

<div id="content">
<!--#include file="test.asp"-->
</div>

</div>
</body>
</html>
 
Assuming the include now is identical to the one in thew tables version, the question would be how you are accessing the page.

ASP being a server side language requires a server to be processed.

So not only would you need a Webserver, you would need the appropriate ASP server end attached to the webserver to run the page.

If you have both of these things, you would need to access the page that has the ASP includes through the webserver such as:


This would make the webserver process and run the ASP includes and deliver them back to the web page.




----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Phil,

thx for your reply. I am running windows 7 64 bit on my machine and was wondering if i could install a webserver that would process asp's. Does anyone know if a limited version of IIS comes with windows 7 ..if yes, how to activate or install it.

Al
 
Since I am using dreamweaver...this should do it.

Setting up an ASP development environment for Dreamweaver:

Link
 
Yup, that should do it.

For any ASP related issued I suggest forum333 - Microsoft: ASP (Active Server Pages

----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top