CSharpFeeds - All your C# feeds in one place.

Tuesday, February 02, 2010

ASP.NET Session Stuff

by moomi via Brain. Fruit. Code. on 2/2/2010 5:23:00 AM

Today I’ll present a tidy way to manage session objects without all the tedious checking for existence. The thought of seeing this in code makes me cringe: if (Session["something"] == null) { Session["something"] = new Something(); }   Come on, man! If you have any kind of session objects, you’re going to do this once for every object. I’ve been using a session class extension that handles the default creation of objects in one line. The two methods of the Sessio ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us