Well, the subject sais it all. What is the best approach to prevent this
from happening?
Thanks,
Shawn
Elton W - 19 Feb 2006 00:07 GMT
Hi Shawn,
You can setting a flag in an ApplicationState, e.g.
Application["fileAccessed"]. In Application_Start set it as false,
Application["fileAccessed"] = false;
Only when it's false to allow to access and shift it to true and also set a
flag in Session. Once finish accessing the file to shift Application flag to
false and delete Session flag. Or in Session_End to check Session flag,
accordingly shift Application flag.
HTH
Elton Wang
> Well, the subject sais it all. What is the best approach to prevent this
> from happening?
>
> Thanks,
> Shawn
Elton W - 19 Feb 2006 03:11 GMT
you can also use Singleton class.
> Well, the subject sais it all. What is the best approach to prevent this
> from happening?
>
> Thanks,
> Shawn