Quick note about Master Pages

by percent20 11/30/2005 5:01:00 PM

When you read most tutorials about master pages they tell you that you just need the at directive at the top to declare its mater page and then only asp.net content in the rest well that gets confusing.

What needs to be said is you need the @ directive stating the master page to use, and you don’t need any html. However, you can use HTML and css and other things inside of the content page. You just don’t need the html that sets up the page such as: 

<html>
<head>
<title></title>
</head>
<body>
</body>
</html>

You no longer need that. It leaves you free to insert pure content of anytype without make sure that those setup tags are in your page.

Hope that helps someone.

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

ASP.NET

Related posts

Add comment


(Will show your Gravatar icon)  

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

8/7/2008 1:34:16 PM

Powered by BlogEngine.NET 1.3.0.0
Theme by Mads Kristensen


My Flare

AddThis Feed Button

National Blog Posting Month

Eagle Scout

I'm Test Driven

[Reserved for MVP status I want to earn]

View Buddy Lindsey's profile on LinkedIn

Twitter



Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008

Sign in