The pathetic musings of a middle-aged moaner
Sunday 05 September 2010

ProfileCommon is not defined – Problem Solved.

16 November 2009 by Raz

ProfileCommon is not defined - Problem Solved.

I was creating a new website based on code that I have created last year. I am sure many developers copy snippets of code to speed up the website construction phase. However when trying to access ProfileCommon from an external class it threw an error stating it wasn't defined.

Dim pfile As ProfileCommon = CType(HttpContext.Current.Profile, ProfileCommon)

ProfileCommon is not defined.

It worked great in code behind classes but not in an external class.

Why did it work before and not now?

What is so good about CSS anyway?

14 September 2009 by Raz

CSS

If you have been looking for a new website for a while, you will (no doubt) have visited many websites of developers and companies that can create them.

Lots of these companies bandy about terms such as W3C and CSS. So what is all that about and why do I need it?

To answer that question we need to look at how web pages are created. In olden days the web page was typically just a bunch of text and the odd picture. This was fab at first but then people wanted to do more with web sites, they wanted to format the page better. But the rules behind the web page (HTML) wouldn't let you do that, so web developers being the canny individuals that they are decided to use tables to organise the material.