Click here to Skip to main content
15,888,286 members
Articles / Web Development / ASP.NET

No More Session Variable Misspellings

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
22 Jun 2011CPOL 8.6K  
I prefer to wrap my session variables like this:public class MySession { public string MyValue { get { return Convert.ToString(Session["MyValue"]); } set { Session["MyValue"] = value; } }}

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions