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

ASP.NET

 
AnswerRe: A question regarding website design Pin
Abhijit Jana14-Dec-09 5:59
professionalAbhijit Jana14-Dec-09 5:59 
AnswerRe: A question regarding website design Pin
James Shao14-Dec-09 12:20
James Shao14-Dec-09 12:20 
QuestionApplication State object is destroyed - Dont know why? Pin
vivasaayi14-Dec-09 1:28
vivasaayi14-Dec-09 1:28 
AnswerRe: Application State object is destroyed - Dont know why? Pin
Abhishek Sur14-Dec-09 3:58
professionalAbhishek Sur14-Dec-09 3:58 
GeneralRe: Application State object is destroyed - Dont know why? Pin
N a v a n e e t h14-Dec-09 5:47
N a v a n e e t h14-Dec-09 5:47 
GeneralRe: Application State object is destroyed - Dont know why? Pin
vivasaayi14-Dec-09 18:46
vivasaayi14-Dec-09 18:46 
GeneralRe: Application State object is destroyed - Dont know why? Pin
Abhishek Sur14-Dec-09 22:04
professionalAbhishek Sur14-Dec-09 22:04 
AnswerRe: Application State object is destroyed - Dont know why? Pin
N a v a n e e t h14-Dec-09 5:43
N a v a n e e t h14-Dec-09 5:43 
Problem here is thread safety. Your code is not thread safe and that is the reason for all weird results. Take look at Application.Lock() and Application.UnLock() methods. These methods are designed to provide thread safety when accessing/writing values into application object.

Having said that, I don't think keeping a single instance of connection in application variable is a good idea. Open the TCP connection each time and closing when done would be ideal solution. If you think it has more overhead, then store it in cache rather than keeping in application state.

Best wishes,
Navaneeth

QuestionCross site Scripting XSS Pin
sachees12314-Dec-09 0:45
sachees12314-Dec-09 0:45 
AnswerRe: Cross site Scripting XSS Pin
SeMartens14-Dec-09 1:23
SeMartens14-Dec-09 1:23 
GeneralRe: Cross site Scripting XSS Pin
sachees12314-Dec-09 18:37
sachees12314-Dec-09 18:37 
AnswerRe: Cross site Scripting XSS Pin
Abhijit Jana14-Dec-09 6:37
professionalAbhijit Jana14-Dec-09 6:37 
QuestionASP.NET Application Development – Tools Pin
Karina.R14-Dec-09 0:39
Karina.R14-Dec-09 0:39 
AnswerRe: ASP.NET Application Development – Tools Pin
SeMartens14-Dec-09 1:25
SeMartens14-Dec-09 1:25 
AnswerRe: ASP.NET Application Development – Tools Pin
Abhijit Jana14-Dec-09 6:01
professionalAbhijit Jana14-Dec-09 6:01 
QuestionWeb 2.0 & JavaScript Framework Pin
Karina.R14-Dec-09 0:21
Karina.R14-Dec-09 0:21 
AnswerRe: Web 2.0 & JavaScript Framework Pin
SeMartens14-Dec-09 1:29
SeMartens14-Dec-09 1:29 
AnswerRe: Web 2.0 & JavaScript Framework Pin
Abhijit Jana14-Dec-09 6:05
professionalAbhijit Jana14-Dec-09 6:05 
QuestionDynamic item template Pin
sekannak14-Dec-09 0:20
sekannak14-Dec-09 0:20 
AnswerRe: Dynamic item template Pin
Dinesh Mani14-Dec-09 0:46
Dinesh Mani14-Dec-09 0:46 
GeneralRe: Dynamic item template Pin
sekannak14-Dec-09 0:59
sekannak14-Dec-09 0:59 
GeneralRe: Dynamic item template Pin
Dinesh Mani14-Dec-09 1:13
Dinesh Mani14-Dec-09 1:13 
Questionmultiple step oledb exception Pin
rajatarora13-Dec-09 22:28
rajatarora13-Dec-09 22:28 
AnswerRe: multiple step oledb exception Pin
SeMartens14-Dec-09 1:30
SeMartens14-Dec-09 1:30 
AnswerRe: multiple step oledb exception Pin
Abhijit Jana14-Dec-09 6:29
professionalAbhijit Jana14-Dec-09 6:29 

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.