Click here to Skip to main content
15,912,400 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: asp.net Pin
Blue_Boy10-May-08 1:48
Blue_Boy10-May-08 1:48 
AnswerRe: asp.net Pin
Abhijit Jana9-May-08 20:39
professionalAbhijit Jana9-May-08 20:39 
Questionhow to disable previous dates in popup Calendar using Ajax Calendar control Pin
Johndas9-May-08 5:20
Johndas9-May-08 5:20 
AnswerRe: how to disable previous dates in popup Calendar using Ajax Calendar control Pin
ChrisKo9-May-08 9:02
ChrisKo9-May-08 9:02 
QuestionSingleton Pattern Pin
Pranav Thakur9-May-08 3:53
Pranav Thakur9-May-08 3:53 
AnswerRe: Singleton Pattern Pin
Sylvester george9-May-08 4:15
Sylvester george9-May-08 4:15 
AnswerRe: Singleton Pattern Pin
led mike9-May-08 4:21
led mike9-May-08 4:21 
AnswerRe: Singleton Pattern Pin
Guffa9-May-08 5:17
Guffa9-May-08 5:17 
If you would apply the singleton pattern to this, it would mean that only one user could open the PDF file. Then you would have to restart the web application before another user could look at it...

I assume that what you really want to do, is to limit the usage per user, not per application. The problem is that the method that you use to open the file effectively prevents any attempt to check if the file is already open or not. The server code has no means at all of checking this, and you would have to open a window using client side code to have a chance to determine if there is already a window open or not. Even then, it depends on how the file is opened by the browser. If it's not opened in a browser window, but in a separate application (i.e. Adobe Reader), you can't determine if the file is still open or not. I'm not certain that it's ossible even if it's opened in a browser window.

So, what you want to do falls somewhere between "maybe working sometimes" and "impossible". Either way it's definitely not possible to implement the way that you suggest.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Singleton Pattern Pin
Pranav Thakur9-May-08 5:43
Pranav Thakur9-May-08 5:43 
GeneralRe: Singleton Pattern Pin
CodingYoshi9-May-08 12:02
CodingYoshi9-May-08 12:02 
QuestionAsp:HyperLink Pin
danasegaranea9-May-08 3:39
danasegaranea9-May-08 3:39 
AnswerRe: Asp:HyperLink Pin
Sylvester george9-May-08 3:49
Sylvester george9-May-08 3:49 
GeneralRe: Asp:HyperLink Pin
danasegaranea9-May-08 3:56
danasegaranea9-May-08 3:56 
GeneralRe: Asp:HyperLink Pin
Sylvester george9-May-08 4:02
Sylvester george9-May-08 4:02 
GeneralRe: Asp:HyperLink Pin
danasegaranea9-May-08 4:18
danasegaranea9-May-08 4:18 
QuestionError in Mailing Pin
Krazy Programmer9-May-08 3:23
Krazy Programmer9-May-08 3:23 
AnswerRe: Error in Mailing Pin
Sylvester george9-May-08 3:54
Sylvester george9-May-08 3:54 
AnswerRe: Error in Mailing Pin
eyeseetee9-May-08 3:58
eyeseetee9-May-08 3:58 
GeneralRe: Error in Mailing Pin
Krazy Programmer9-May-08 7:00
Krazy Programmer9-May-08 7:00 
QuestionA socket operation was attempted to an unreachable host Pin
eyeseetee9-May-08 3:17
eyeseetee9-May-08 3:17 
AnswerRe: A socket operation was attempted to an unreachable host Pin
Sylvester george9-May-08 3:57
Sylvester george9-May-08 3:57 
GeneralRe: A socket operation was attempted to an unreachable host Pin
eyeseetee9-May-08 3:59
eyeseetee9-May-08 3:59 
GeneralRe: A socket operation was attempted to an unreachable host Pin
Sylvester george9-May-08 4:03
Sylvester george9-May-08 4:03 
Questionfacing problem when pressing back button from browser Pin
shraddha19049-May-08 2:32
shraddha19049-May-08 2:32 
AnswerRe: facing problem when pressing back button from browser Pin
eyeseetee9-May-08 3:19
eyeseetee9-May-08 3:19 

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.