Solved

Inheriting an ASPX page

Posted on 2004-08-18
1
364 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…

738 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