Archive for December, 2007

Use Generic Methods to create a Session Wrapper class

December 26th, 2007

Getting values out of session in ASP.NET can be a bit of a pain for two reasons:

You have to remember what you named the value when you put it in
You have to type cast the value, as session stores it in an Object

One nice way to handle this is to build a wrapper class to [...]

Dynamically change Master Page body tag

December 19th, 2007

Today I spent several hours butting up against this, and finally, after much gnashing of teeth, found this great blog entry explaining what I needed to know.
Basically, the problem is that I needed to call a javascript function onload in the body tag of the page, but of course in an ASP.NET Content page there [...]