Check for existence of a session variable
I want to check for the existence of the variable session("MyVariable") on my user control. If it does not exist or is unassigned then I want to query the database and assign Session("MyVariable") to a value. Otherwise, if the variable exists I want to do nothing. Is there way to do this?
In ColdFusion we use ParameterExists() or IsDefined(). is there an equivalent in ASPX?
Thanks
|