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

ASP.NET

 
GeneralRe: Detecting changes on a page Pin
binarymax14-Apr-09 9:20
binarymax14-Apr-09 9:20 
AnswerRe: Detecting changes on a page Pin
Yusuf14-Apr-09 9:24
Yusuf14-Apr-09 9:24 
QuestionVS2008 SOAP Client - losing Session problem [modified] Pin
Vozzie214-Apr-09 4:44
Vozzie214-Apr-09 4:44 
AnswerRe: VS2008 SOAP Client - losing Session problem Pin
anbam15-Nov-10 22:54
anbam15-Nov-10 22:54 
QuestionScroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
indian14314-Apr-09 3:35
indian14314-Apr-09 3:35 
AnswerRe: Scroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
binarymax14-Apr-09 3:41
binarymax14-Apr-09 3:41 
GeneralRe: Scroll bars of TreeView should be invisble when they are disabled by using CSS class Pin
indian14314-Apr-09 19:45
indian14314-Apr-09 19:45 
QuestionThread locking and ASP.NET [modified] Pin
binarymax14-Apr-09 3:08
binarymax14-Apr-09 3:08 
Hi,

I have some short questions about locking threads in ASP.NET. Normally I use C# console/winforms but in this case I need to write it in VB for ASP.NET. My questions are there any drawbacks to this code in a high-volume of requests? Is this completely wrong for an ASP.NET application? If so what do you recommend? The purpose here is to lock a timestamp and be sure it is set uniquely throughout all the sessions on the web server:

Protected Shared TimeStamp As Date
Protected Shared Sub SetUniqueTimeStamp()

    Try
        ' Request the lock, and block until it is obtained.
        Monitor.Enter(TimeStamp)
        ' When the lock is obtained, set the Timestamp.
        TimeStamp = Now
    Finally
        'Guarantee at least 1ms tick for uniqueness
        Thread.Sleep(1)
        ' Ensure that the lock is released.
        Monitor.Exit(TimeStamp)
    End Try

End Sub


This is just an example based on some code I altered from this at MSDN: Monitor.Enter Method[^]

Many thanks in advance!

modified on Tuesday, April 14, 2009 10:02 AM

Questionpotential solutions for recording video from client webcam Pin
hardboy11114-Apr-09 2:49
hardboy11114-Apr-09 2:49 
Questionsql server login problem Pin
nikhil123414-Apr-09 2:32
nikhil123414-Apr-09 2:32 
AnswerRe: sql server login problem Pin
Colin Angus Mackay14-Apr-09 2:59
Colin Angus Mackay14-Apr-09 2:59 
AnswerRe: sql server login problem Pin
Greg Chelstowski14-Apr-09 3:00
Greg Chelstowski14-Apr-09 3:00 
GeneralRe: sql server login problem Pin
Colin Angus Mackay14-Apr-09 3:05
Colin Angus Mackay14-Apr-09 3:05 
GeneralRe: sql server login problem Pin
Greg Chelstowski14-Apr-09 3:10
Greg Chelstowski14-Apr-09 3:10 
QuestionSession Problem Pin
pra.chaudhari14-Apr-09 2:18
pra.chaudhari14-Apr-09 2:18 
AnswerRe: Session Problem Pin
Abhijit Jana14-Apr-09 2:45
professionalAbhijit Jana14-Apr-09 2:45 
GeneralRe: Session Problem Pin
pra.chaudhari14-Apr-09 3:00
pra.chaudhari14-Apr-09 3:00 
GeneralRe: Session Problem Pin
Abhijit Jana14-Apr-09 3:51
professionalAbhijit Jana14-Apr-09 3:51 
GeneralRe: Session Problem Pin
Yusuf14-Apr-09 11:05
Yusuf14-Apr-09 11:05 
GeneralRe: Session Problem Pin
Abhijit Jana14-Apr-09 19:24
professionalAbhijit Jana14-Apr-09 19:24 
QuestionMultiple events on post-back Pin
AumSingh14-Apr-09 1:16
professionalAumSingh14-Apr-09 1:16 
AnswerRe: Multiple events on post-back Pin
Abhijit Jana14-Apr-09 1:37
professionalAbhijit Jana14-Apr-09 1:37 
GeneralRe: Multiple events on post-back Pin
AumSingh14-Apr-09 2:51
professionalAumSingh14-Apr-09 2:51 
GeneralRe: Multiple events on post-back Pin
Abhijit Jana14-Apr-09 3:53
professionalAbhijit Jana14-Apr-09 3:53 
GeneralRe: Multiple events on post-back Pin
AumSingh14-Apr-09 4:13
professionalAumSingh14-Apr-09 4:13 

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.