Solved

Inheriting an ASPX page

Posted on 2004-08-18
1
358 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
1 Comment
 
LVL 3

Accepted Solution

by:
nhewitt21 earned 250 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Exception in Log4Net 1 17
C# Application Local DB Connection String 23 57
Image(7) 1 33
XML & .net 5 16
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now