Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. I want to close this page to all users

I want to close this page to all users

Scheduled Pinned Locked Moved ASP.NET
visual-studio
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmed El Badry
    wrote on last edited by
    #1

    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

    M M 2 Replies Last reply
    0
    • A 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

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      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:

      A 1 Reply Last reply
      0
      • M Manas Bhardwaj

        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:

        A Offline
        A Offline
        Ahmed El Badry
        wrote on last edited by
        #3

        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

        E 1 Reply Last reply
        0
        • A 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

          E Offline
          E Offline
          Eduard Keilholz
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • A 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

            M Offline
            M Offline
            Mubashir Javaid
            wrote on last edited by
            #5

            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.

            A 1 Reply Last reply
            0
            • M Mubashir Javaid

              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.

              A Offline
              A Offline
              Ahmed El Badry
              wrote on last edited by
              #6

              i need this example in VB.net not C#.net and thnx for:confused: helping

              Ahmed El-Badry

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups