Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionupload MS Word to MySQL Pin
Jassim Rahma16-Jul-12 7:46
Jassim Rahma16-Jul-12 7:46 
AnswerRe: upload MS Word to MySQL Pin
Sandeep Mewara16-Jul-12 21:07
mveSandeep Mewara16-Jul-12 21:07 
QuestionSession time out not working Pin
Member 910478815-Jul-12 23:00
Member 910478815-Jul-12 23:00 
AnswerRe: Session time out not working Pin
Karthik Harve15-Jul-12 23:09
professionalKarthik Harve15-Jul-12 23:09 
AnswerRe: Session time out not working Pin
Rahul Rajat Singh16-Jul-12 2:18
professionalRahul Rajat Singh16-Jul-12 2:18 
AnswerRe: Session time out not working Pin
Karthik Harve16-Jul-12 2:31
professionalKarthik Harve16-Jul-12 2:31 
QuestionASPNET putting business classes in session ? Pin
billymac105915-Jul-12 15:31
billymac105915-Jul-12 15:31 
AnswerRe: ASPNET putting business classes in session ? Pin
Rahul Rajat Singh16-Jul-12 2:27
professionalRahul Rajat Singh16-Jul-12 2:27 
IMHO, you need this class and the current approach is to create it in each page. which means you are acquiring some memory and taking some time to create the object.

If you keep the object in session then you will still be using than much of memory but the only advantage will be the overhead required in creating the object every-time will be gone.

1. But, in your current approach your object was being created on demand and if you keep this object in session that will like in user memory for all the time so I don't thing this is a good idea to save this in sessions.

2. Even with the overhead for creating object each time gone, you will still need the typecasting of session variables in each page which will effectively nullify the benefit we got.

3. putting this object will put some overload on session, which could mean that the session may be lost earlier than it should have(if number of request are more) and we will loose more valuable session info because we have this object residing in session memory.

My recommendation would be to keep it as you have implemented. Session should only be used for the crucial information. If you need to access this info frequently then perhaps you can think about storing it in Cache instead of Session. and if it can be reused across users keep it in Application variable.
Every now and then say, "What the Elephant." "What the Elephant" gives you freedom. Freedom brings opportunity. Opportunity makes your future.

QuestionDevExpress Grid Pin
basitsar14-Jul-12 4:56
basitsar14-Jul-12 4:56 
AnswerRe: DevExpress Grid Pin
Sandeep Mewara14-Jul-12 21:50
mveSandeep Mewara14-Jul-12 21:50 
QuestionValidation Expression Question Pin
Jassim Rahma14-Jul-12 1:45
Jassim Rahma14-Jul-12 1:45 
AnswerRe: Validation Expression Question Pin
Sandeep Mewara14-Jul-12 21:52
mveSandeep Mewara14-Jul-12 21:52 
GeneralSEND MAIL Pin
laxman sindh13-Jul-12 20:21
laxman sindh13-Jul-12 20:21 
GeneralRe: SEND MAIL Pin
Richard MacCutchan13-Jul-12 22:51
mveRichard MacCutchan13-Jul-12 22:51 
AnswerRe: SEND MAIL Pin
Sandeep Mewara14-Jul-12 22:01
mveSandeep Mewara14-Jul-12 22:01 
GeneralRe: SEND MAIL Pin
wikizhao15-Jul-12 16:25
wikizhao15-Jul-12 16:25 
AnswerRe: SEND MAIL Pin
Dhyanga17-Jul-12 10:32
Dhyanga17-Jul-12 10:32 
QuestionDevelop Enterpise Applicattions with ASP.NET Pin
Phatinox13-Jul-12 2:08
Phatinox13-Jul-12 2:08 
AnswerRe: Develop Enterpise Applicattions with ASP.NET Pin
David Mujica13-Jul-12 2:27
David Mujica13-Jul-12 2:27 
AnswerRe: Develop Enterpise Applicattions with ASP.NET Pin
Member 771364713-Jul-12 2:54
Member 771364713-Jul-12 2:54 
GeneralRe: Develop Enterpise Applicattions with ASP.NET Pin
Phatinox13-Jul-12 3:10
Phatinox13-Jul-12 3:10 
AnswerRe: Develop Enterpise Applicattions with ASP.NET Pin
wikizhao15-Jul-12 16:29
wikizhao15-Jul-12 16:29 
Questioncannot convert dataview t0 dataset Pin
sumeet kumar Attri12-Jul-12 21:13
sumeet kumar Attri12-Jul-12 21:13 
AnswerRe: cannot convert dataview t0 dataset Pin
Sandeep Mewara12-Jul-12 23:04
mveSandeep Mewara12-Jul-12 23:04 
QuestionFormView/ObjectDataSource Insert Problem Pin
Darren Dickerson12-Jul-12 5:36
Darren Dickerson12-Jul-12 5:36 

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.