Session["variables"]
page_load
if (string.IsNullOrEmpty(Session["Username"] as string)) { //Some Stuff to initialize the variable }
System.NullReferenceException: Object reference not set to an instance of an object.
null
NullReferenceException
Session
Page.Session
HttpException
string.IsNullOrEmpty
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)