File Locking

S

Stanley Cheung

Hi all,

Anyone have a "File Locking" experience?

I want to ask if the application can prevent 2 user access (concurrently) to
file for content editing...

any lock and unlock mechanism dotnet buildin?

Thanks in advanced.
steambun
 
M

Markus Stoeger

Stanley said:
Hi all,

Anyone have a "File Locking" experience?

I want to ask if the application can prevent 2 user access (concurrently) to
file for content editing...

any lock and unlock mechanism dotnet buildin?

Take a look at the parameters of the FileStream constructor. There are
quite a few different options for locking.

hth,
Max
 
K

Kevin Spencer

When a process has a file opened for writing, it is locked from any other
process writing to it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
A watched clock never boils.
 
S

Stanley Cheung

Sorry, I think my description is wrong,

Actually, i want to do the following requirement as below:

Admin A login and go to edit Page A, Admin B login and attempts to edit Page
A, system will report that Page A is using by another person, and Page A
will release to public until Admin A click "OK" or "Cancel".

I think i got the big problem when Admin A close the browser un-normally,
e.g: if edit is popup window, Admin A can close the popup window by
top-right corner button. So we can't release Page A and then no one can
access Page A anymore.

Please advise if you have any ideas........ Thanks.
 
S

Stanley Cheung

Sorry, I think my description is wrong,

Actually, i want to do the following requirement as below:

Admin A login and go to edit Page A, Admin B login and attempts to edit Page
A, system will report that Page A is using by another person, and Page A
will release to public until Admin A click "OK" or "Cancel".

I think i got the big problem when Admin A close the browser un-normally,
e.g: if edit is popup window, Admin A can close the popup window by
top-right corner button. So we can't release Page A and then no one can
access Page A anymore.

Please advise if you have any ideas........ Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top