del.icio.us Tags: ASP.NET , C# Hi there, Here is an extension method for getting a value from the session in a safe manner. 1: static public bool TryGet<T>( this HttpSessionState session, string key, out T value ) { 2: 3: bool flag = false ; 4: value = default (T); 5: 6: if (session...