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

ASPX pages - how to use includes?

Status
Not open for further replies.

DaRNCaT

Technical User
Dec 18, 2002
566
NZ
I've never touched asp before, I use PHP but I'm rebuilding the graphical part of a website, and the site has both asp and php pages within it (it's a mess!).
Now I've got html pages - header, menu, footer, which I'm including as SSI for the .html pages, and using php includes for the PHP pages.
I tried to get the "insert" command to add in a asp include, but all my asp commands are greyed out, and as I don't know a think about asp, I don't know what to do next. - is there a good reason I can't use the asp commands?

Any help appreciated!

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
the page starts like this
(I know nada about asp, so excuse my stupidity)
Code:
<%@ Page language="c#" Codebehind="contactus.aspx.cs" AutoEventWireup="false" Inherits="ContactUs.contactus" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>

I obviously need to fix the doctype, so my css will work properly , but as for the rest of it, and how to add includes- I know nothing. I'm using SSI includes and PHP includes elsewhere, how do I write the asp.net include?

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
This is the generated code from DW on an aspx page

Code:
<!--#include file="yourfile.aspx" -->

[Peace][Pipe]
 
I'm not including the aspx file, I want to include my header and footer .html files into the aspx page.
any suggestions?

----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top