Click here to Skip to main content
16,016,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Adding Objects To Session Pin
ZurdoDev4-Jan-16 8:24
professionalZurdoDev4-Jan-16 8:24 
AnswerRe: Adding Objects To Session Pin
Mathi Mani4-Jan-16 8:58
Mathi Mani4-Jan-16 8:58 
AnswerRe: Adding Objects To Session Pin
ASPnoob4-Jan-16 10:55
ASPnoob4-Jan-16 10:55 
GeneralRe: Adding Objects To Session Pin
F-ES Sitecore4-Jan-16 22:46
professionalF-ES Sitecore4-Jan-16 22:46 
GeneralRe: Adding Objects To Session Pin
Richard Deeming5-Jan-16 2:28
mveRichard Deeming5-Jan-16 2:28 
GeneralRe: Adding Objects To Session Pin
F-ES Sitecore5-Jan-16 2:59
professionalF-ES Sitecore5-Jan-16 2:59 
GeneralRe: Adding Objects To Session Pin
Richard Deeming5-Jan-16 7:34
mveRichard Deeming5-Jan-16 7:34 
GeneralRe: Adding Objects To Session Pin
F-ES Sitecore6-Jan-16 22:47
professionalF-ES Sitecore6-Jan-16 22:47 
I agree, which is why I'd use "as" rather than casting as you did in your example as your code would error if the session variable existed but contained a different object Poke tongue | ;-P

Sessions last for the period of the page execution. It has to exist for the page to start executing so can't time-out mid execution. It'll only become unavailable if something terminal has happened like the app unloading, and your code will stop working in that instance anyway.
QuestionCreate an ASP.NET Page with a scheduler application Pin
Helgard W29-Dec-15 21:40
Helgard W29-Dec-15 21:40 
SuggestionRe: Create an ASP.NET Page with a scheduler application Pin
Richard MacCutchan29-Dec-15 22:38
mveRichard MacCutchan29-Dec-15 22:38 
GeneralRe: Create an ASP.NET Page with a scheduler application Pin
Helgard W29-Dec-15 22:45
Helgard W29-Dec-15 22:45 
AnswerRe: Create an ASP.NET Page with a scheduler application Pin
Anurag Gandhi29-Dec-15 22:45
professionalAnurag Gandhi29-Dec-15 22:45 
AnswerRe: Create an ASP.NET Page with a scheduler application Pin
Helgard W29-Dec-15 22:47
Helgard W29-Dec-15 22:47 
AnswerRe: Create an ASP.NET Page with a scheduler application Pin
Zubair Khan May202324-May-23 2:01
Zubair Khan May202324-May-23 2:01 
Questionweb form application accessing ssrs reports Pin
dcof28-Dec-15 6:34
dcof28-Dec-15 6:34 
QuestionFreddy Kruger Fixed Pin
BobbyStrain24-Dec-15 7:16
BobbyStrain24-Dec-15 7:16 
Questionhow to start android mobile app development Pin
Member 1187868023-Dec-15 8:30
Member 1187868023-Dec-15 8:30 
AnswerRe: how to start android mobile app development Pin
Richard MacCutchan23-Dec-15 10:32
mveRichard MacCutchan23-Dec-15 10:32 
AnswerRe: how to start android mobile app development Pin
Caroll Bert30-Dec-15 19:40
Caroll Bert30-Dec-15 19:40 
Questionhow to set gridview height auto meanse auto fit containt row in gridview Pin
Member 1187868023-Dec-15 8:04
Member 1187868023-Dec-15 8:04 
AnswerRe: how to set gridview height auto meanse auto fit containt row in gridview Pin
OriginalGriff23-Dec-15 8:11
mveOriginalGriff23-Dec-15 8:11 
QuestionThe page isn't redirecting properly Pin
Member 1114890122-Dec-15 18:23
Member 1114890122-Dec-15 18:23 
AnswerRe: The page isn't redirecting properly Pin
Anurag Gandhi27-Dec-15 1:13
professionalAnurag Gandhi27-Dec-15 1:13 
QuestionJob Queue within Website? Pin
nlarson1121-Dec-15 5:57
nlarson1121-Dec-15 5:57 
AnswerRe: Job Queue within Website? Pin
Anurag Gandhi27-Dec-15 1:12
professionalAnurag Gandhi27-Dec-15 1:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.