Solved

Inheriting an ASPX page

Posted on 2004-08-18
1
363 Views
Last Modified: 2010-04-15
Ok,

I know you can inherit the CS code from one form into another ... I wanto to know if I can do the same for the HTML code ...

eg: I want to set the CSS on just the base page so I don't have to repeat it in every page ...

0
Comment
Question by:Pete2003
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
nhewitt21 earned 250 total points
ID: 11829878
ok what i would do here is make a header and footer page, and just include that on all the pages you want them.

heres my page with the includes:
<HTML>
<HEAD>
<title runat="server" id="title"></title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="VBScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie3-2nav3-0" name="vs_targetSchema">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<LINK href="common/styles/styleTest3.css" type="text/css" rel="stylesheet">
</HEAD>
<body>
<form id="Emda_Cms_Default" method="post" runat="server">
<!--#include virtual="Includes/Header.aspx" -->
YOUR BODY TEXT GOES HERE<br />
<!--#include virtual="Includes/Footer.aspx" -->
</form>
</body>
</HTML>

now when you create your header and footer as an aspx page you don't want any code behind pages.

Hope this helps you

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question