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

Master Pages vs. CSS

by percent20 11/29/2005 7:26:00 AM

I must say that master pages are really really cool. At first I was concerned that Master Pages was going to force everything that you did to be in tables thus taking CSS out of the picture. I was mainly concerned about this because I can see the benefits that CSS can offer to web developers and want to use this really cool and useful technology.

When I first saw Master Pages being used I would look at the code and see almost nothing but tables being used for positioning of objects and it was annoying because after all I want to use CSS. So I proceeded to start and learn CSS anyway hoping that I could just override the default output that Master Pages used.

Well I have learned quite a bit about CSS now, basically I am confident with it, and just took a look at Master Pages. I must say I was impressed by them the blew me away with the possibilities. I am still learning them so some of the problems I forsee are probably solved. Let me first explain a little bit about master pages first.

Master Pages is a new technology in ASP.NET 2.0 that allows for a unified look and feel of a website without having to go in and customize individual pages, which can take up hours. With master pages you make a sing master page that has the look and feel you want across all pages such as the most common things menu, banner, and footer. Now user controls reduced the time it took to do this significantly, but Master Pages is just where it is at.

Now CSS offers pretty much the same thing. You make up your classes for your divs with positioning font information yada yada yada. Now Master Pages makes it faster than CSS, but if it outputs to tables, then where are the web standards? This was my big worry. I want to make standards compliant websites using ASP.NET.

Well here is the cool part. You can use CSS to do the layouts on the Master Page. In fact Master Pages compliments CSS and vice versa. You now only have to make the CSS file, and apply all the classes and ids to one file instead of 20. Now tell me that is not awesome.

What does this mean?

Well it increases the possibilities of standards compliant ASP.NET websites. It allows for less time in development because now you can focus more on the code that is important instead of menial looks. You can now write the whole backend for that amazon.com clone and don’t have to worry about the useless front end.

Be the first to rate this post

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

Tags: , , , , ,

.NET | ASP.NET | Awesome Stuff | Programming

CSS and ASP.NET 2.0

by percent20 11/21/2005 7:24:00 AM

Ok, Most of the posts from now on will be about ASP.NET 2.0. I must say though I didn’t really expect to switch so fast. I really liked 1.1, sort of, and was comfortable with it. So I though I would be forced into 2.0, but nope I am loving it. So rarely will I post on 1.1 unless I have a project that requires it, like under Linux. So that is to let you know what is going on there.

So lately I have been reading up on CSS and some of the virtues of it and am really impressed by CSS. Once you play with it for a while you get comfortable with it and can actually start doing interesting things with it. Now I am sure what I am doing now for integrating it into ASP.NET 2.0 is just hacking it in there, but hey it works.

One of the easiest ways to implement it in 2.0 is with the DataList, because it is all that i have tried so far. When you bind the DataList, which is super easy now, it automatically creates the labels and binds data to it no more having to go in by hand to do that. Well all you have to do to use CSS on it is open up the HTML add div apply an id from the CSS file and voila done it comes out pretty.

Now why would you want to do that instead of just applying font properties?

Well now to edit all I have to do is edit the CSS file. It will cut my maintenance time down by quite a bit. A book I suggest is the Zen Garden CSS book, or the site. I wish I had taken my own advice, once again, a long time ago and learned CSS.

If you don’t know CSS and are a web developer either professionally or as a hobbyist I suggest you learn it right a way. Once you get past the learning curve it makes life more bearable.

Be the first to rate this post

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

Tags: ,

ASP.NET

Open Source wars

by percent20 11/18/2005 7:21:00 AM

Ok, this is just a random thought, but I was thinking and I kind of predict some serious open source vs. proprietary wars coming within the next 10 years. I don’t mean the current geek bickering that you see all the time or the current enterprise level use Linux for blah. I truly see that normal users will become more educated on what open source software is and some beginning to switch to it. At that point I see 2 things happening.

1) Because so many people will be switching back and forth and there won’t necessarily be a winner on either side software is going to get better in general due to competition.

2) This will lead to the spilling out of the geek communities back and forth to the normal end users that don’t know much.

In business, especially in computers, there needs to be a power pushing the way. I think that there is going to be a power struggle, but I don’t know who is going to be there in the struggle for sure. I think that the company that offers the best mix between both OSS and Proprietary, like Red Hat, will come out on top. I don’t however see Microsoft fading into the distance any time soon much like IBM didn’t die when Microsoft took over. I do see them stepping back into second or third place restructuring for the new trends, and then I see them pushing innovation in some areas, mainly development.

I say this as an honest prediction of what I see. I could be totally off on my thoughts. It will be interesting to see what happens.

*This in no way means I love Microsoft and hate open source or vise versa. I love both and see the benefits of both.

Be the first to rate this post

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

Tags: , ,

Microsoft | Open Source

MSDN Launch party

by percent20 11/17/2005 7:19:00 AM

Well I went to the MSDN launch party yesterday for SQL Server 2005 and Visual Studio 2005 and I must say WOW.

It was awesome. The demos were incredible it was absolutely amazing some of the things that were show. Like the building of a complete data driven website with the capabilities of users logging in, registering, and personal preferences without a single line of code. That to me was amazing. I honestly can’t wait to get started with ASP.NET 2.0. Actually, I should be starting this week sometime with a redesign of Lhand.com.

As part of the bonus of going to the launch party I got two cool pieces of software, Visual Studio 2005 and SQL Server 2005. Both are the coolest products in the world, and retail together at 6300 dollars. That, my friends is a lot of money. Not to mention the Resource DVD they gave away with 8 gig of content for learning these new products. I am seeing a lot of cool things coming from having these new products. I can’t wait to get started, especially figuring out Atlas (AJAX), and RSS. From what I understand both are super easy to implement in ASP.NET 2.0

Well need to get to work reading up on this stuff so until next time. Happy coding

Buddy Lindsey

Be the first to rate this post

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

Tags: , , , , ,

.NET | ASP.NET | Awesome Stuff | Microsoft | Sql Server | Programming

SPS: Stupid Person Syndrome

by percent20 11/9/2005 7:17:00 AM

Ok, I am inventing a new medical term. It is called:

Stupid Person Syndrome.

What qualifies you as suffering from SPS
1. doing something stupid then complaining about it.
2. Saying something that is just plain stupid (you know what I mean).

non of this refers to there is no stupid question.

The reason I am making this up is because

a) I hate stupid people
b) I do stupid things

So now when either of these happen I can just say they are suffering from SPS.

I tend to do stupid things regarding school work especially not looking at when stuff is do or when a test is. So what prompted me to define this is I was complaing that i did something stupid then my friend just started talking to as if I had defintaly done something stupid. So from now on you know what is wrong with someone if they do, say or act stupid.

Be the first to rate this post

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

Tags: , ,

Awesome Stuff | Personal

DotNetNuke Blogs - No Respect for Windows Open Source

by percent20 11/8/2005 7:15:00 AM

DotNetNuke Blogs – No Respect for Windows Open Source

Woohoo someone who is fighting back agianst Microsoft haters saying unless it is linux it isn’t true opensource.

Shaun Walker reems the people who claim that unless it runs on all opensource software then it is not truely open source. He is fighting and IMO produces one of the most solid arguments I have ever seen.

To me this is a landmark argument for Windows based Open Source projects.

I mean why can’t windows, which has the largest market share of desktop os, have OSS? I mean I would think that starting people out using OSS on windows would be the first step to prove that OSS is good and that eventually you should try other OSS such as Linux.

Anyway I highly suggest you read the post.

Be the first to rate this post

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

Tags: , ,

Microsoft | Open Source

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