Posted in dotnet, tagged c#, Configuration on May 28, 2008 | 3 Comments »
I’ve so often seen people combining paths like this:
string path = basePath + "\\" + filename;
Sometimes they use Path.DirectorySeparatorChar or even check wether basePath or filename already contains. The program then fails with exceptions like "could not find file c:\Program Files\MyProggie\\settings.xml" or even worse files like MyProggiesettings.xml are created, just because the person configuring the [...]
Read Full Post »
Posted in dotnet, tagged Application, ASP.Net, HttpApplicationState, HttpSessionState, Page, Session, Session State, TDD, Testable Code, Type Safe, Wrapper on May 19, 2008 | 1 Comment »
If you’ve read my Article about How to wrap the ASP.net session state I want to show you how to make the wrapper testable using the Free .Net Ambient Context Pattern Implementation.
If you only want a easy ASP.net session state wrapper snippet without any dependencies, try How to wrap the ASP.net session state
In the initial [...]
Read Full Post »
Posted in Just Drops, tagged SPEC# on May 15, 2008 | 1 Comment »
I beg you, Microsoft, release it. This is what we miss!! The NullReferenceException is the worst class I know in .NET Framework. Really!!
Read Full Post »
Posted in dotnet, tagged Application, ASP.Net, HttpApplicationState, HttpSessionState, Page, Session, Session State, Type Safe, Wrapper on May 14, 2008 | 20 Comments »
Implementing a SessionVariable that wraps HttpContext.Current.Session in a intuitive and typesafe manner.
Read Full Post »
Mads Kristensen is right in his article saying that WE have to wake up for the possibilities the web offers. It’s not about threats, it’s about opportunities!
I have created some Microformats in my current project. But wrongly! Why? Haven’t installed Operator toolbar for Firefox yet. Ridiculous, isn’t it. Or rather laziness.
But that’s what Mads [...]
Read Full Post »