Click here to Skip to main content
15,887,992 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: how to downoad attachment file Pin
jkirkerx9-Jan-12 15:27
professionaljkirkerx9-Jan-12 15:27 
QuestionIs it possible to get the AJAX service response in user control? Pin
dayakar_dn8-Jan-12 6:16
dayakar_dn8-Jan-12 6:16 
AnswerRe: Is it possible to get the AJAX service response in user control? Pin
manognya kota8-Jan-12 21:01
manognya kota8-Jan-12 21:01 
AnswerRe: Is it possible to get the AJAX service response in user control? Pin
jkirkerx9-Jan-12 9:13
professionaljkirkerx9-Jan-12 9:13 
QuestionWill the static get accessor of a property be cached ? Pin
Nadia Monalisa4-Jan-12 16:25
Nadia Monalisa4-Jan-12 16:25 
AnswerRe: Will the static get accessor of a property be cached ? Pin
jkirkerx6-Jan-12 7:11
professionaljkirkerx6-Jan-12 7:11 
GeneralRe: Will the static get accessor of a property be cached ? Pin
Nadia Monalisa6-Jan-12 10:30
Nadia Monalisa6-Jan-12 10:30 
GeneralRe: Will the static get accessor of a property be cached ? Pin
jkirkerx6-Jan-12 11:02
professionaljkirkerx6-Jan-12 11:02 
No,

The data lives in the web servers session context, your just writing code that talks to the web server if the data exist. So you also need to make sure that the data exist before you ask for the data, or else the code will bomb with an object not found.

Once the session expires, usually 20 minutes, that's it, the handle to the web servers session context is deleted, and your data is cleared. You can't store session data forever, it's has a short ( finite ) lifespan.

If you want to store temporary data, then you write to the database on the server side, or write a cookie on the client side. And ask the browser for the cookie if it exist thus - Request.Cookie

3rd edit:

Don't worry about the code, or whether it is public or private. Technically, the object should already be global, in which you can access the data on another web page using the same code.

If your using the code to remember who the user is, on many pages after they sign in, then your alright. Just make sure to check the identity when needed.

modified 6-Jan-12 17:21pm.

Questiononline service provider regarding sale/purchase services like advocay etc Pin
adnan safdar4-Jan-12 1:17
adnan safdar4-Jan-12 1:17 
AnswerRe: online service provider regarding sale/purchase services like advocay etc Pin
Richard MacCutchan4-Jan-12 2:46
mveRichard MacCutchan4-Jan-12 2:46 
AnswerRe: online service provider regarding sale/purchase services like advocay etc Pin
jkirkerx6-Jan-12 7:43
professionaljkirkerx6-Jan-12 7:43 
QuestionUsing Uploadify In Custom Server Control Pin
Richard Blythe2-Jan-12 16:21
Richard Blythe2-Jan-12 16:21 
AnswerRe: Using Uploadify In Custom Server Control Pin
jkirkerx6-Jan-12 7:22
professionaljkirkerx6-Jan-12 7:22 
QuestionHow to load TabControl with many of objects and tabs FASTER Pin
satrio_budidharmawan1-Jan-12 21:02
satrio_budidharmawan1-Jan-12 21:02 
AnswerRe: How to load TabControl with many of objects and tabs FASTER Pin
manognya kota6-Jan-12 2:03
manognya kota6-Jan-12 2:03 
Questionransfer data from one page to another Pin
Enobong Adahada30-Dec-11 0:13
Enobong Adahada30-Dec-11 0:13 
AnswerRe: ransfer data from one page to another Pin
thatraja30-Dec-11 0:54
professionalthatraja30-Dec-11 0:54 
AnswerRe: ransfer data from one page to another Pin
mahmoud mohammed mansor31-Dec-11 1:23
mahmoud mohammed mansor31-Dec-11 1:23 
GeneralRe: ransfer data from one page to another Pin
syamrulezzz5-Jan-12 22:20
syamrulezzz5-Jan-12 22:20 
AnswerRe: ransfer data from one page to another Pin
Jitendra Parida - Jeetu3-Jan-12 1:28
Jitendra Parida - Jeetu3-Jan-12 1:28 
QuestionListview with Search and DataPager controls Pin
ylsv29-Dec-11 5:05
ylsv29-Dec-11 5:05 
Questioncalendar extender not working in black berry phone os 4.6 and above Pin
vishnukamath28-Dec-11 21:19
vishnukamath28-Dec-11 21:19 
Questionmergetags in a web application Pin
MalarGayu28-Dec-11 13:58
MalarGayu28-Dec-11 13:58 
Questionadding item in listbox using delegate Pin
jhyn27-Dec-11 22:38
jhyn27-Dec-11 22:38 
AnswerRe: adding item in listbox using delegate Pin
Barbo28-Dec-11 4:54
Barbo28-Dec-11 4:54 

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.