I want to close this page to all users
-
when someone open this page and aonther user tray open it see msg this page opened by aonther user used VS 2003
Ahmed El-Badry
-
when someone open this page and aonther user tray open it see msg this page opened by aonther user used VS 2003
Ahmed El-Badry
Ahmed El-Badry wrote:
when someone open this page and aonther user tray open it
First of all from where the user tray comes into the scene?:confused: Anyway, what I understood is, you have a web application in which you want a particular page to be opened only by an user at a time. Am i goin right? Well, I can not understand the reason why you are doing this, but solution can be very simple. Maintain a application state, and store information in it if some one has already opened in it. Display the message accordingly.:rose:
-
Ahmed El-Badry wrote:
when someone open this page and aonther user tray open it
First of all from where the user tray comes into the scene?:confused: Anyway, what I understood is, you have a web application in which you want a particular page to be opened only by an user at a time. Am i goin right? Well, I can not understand the reason why you are doing this, but solution can be very simple. Maintain a application state, and store information in it if some one has already opened in it. Display the message accordingly.:rose:
yes i have web application and i want this page opend only by one user when this user close it The user is the only one who can open at the same time
Ahmed El-Badry
-
yes i have web application and i want this page opend only by one user when this user close it The user is the only one who can open at the same time
Ahmed El-Badry
And how do you want to determine that a user closes the page?? Other from that... use the Application[] variables...
Application["InUse"] = true;
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
when someone open this page and aonther user tray open it see msg this page opened by aonther user used VS 2003
Ahmed El-Badry
use applicatoin object in the way let suppose add this statement on page load. if (Application["PageState"] == null) { Application["PageState"] = "Opened"; } else { Application["PageState"] = null; } this object is application level and is visible to all users.
-
use applicatoin object in the way let suppose add this statement on page load. if (Application["PageState"] == null) { Application["PageState"] = "Opened"; } else { Application["PageState"] = null; } this object is application level and is visible to all users.
i need this example in VB.net not C#.net and thnx for:confused: helping
Ahmed El-Badry