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. About the multiple instances of same form

About the multiple instances of same form

Scheduled Pinned Locked Moved ASP.NET
helpquestion
4 Posts 3 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
    Abhishek Rana
    wrote on last edited by
    #1

    hi , I am devloping a web application in which i have an menu from which diffrent pages can be open now what i want is to restrict the user to open the same page from the menu more than once.so how do i restrict. Thanks in advance for your help.

    C 1 Reply Last reply
    0
    • A Abhishek Rana

      hi , I am devloping a web application in which i have an menu from which diffrent pages can be open now what i want is to restrict the user to open the same page from the menu more than once.so how do i restrict. Thanks in advance for your help.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If the pages are popups, then you can do this using javascript. keep a reference to each open window and focus on it if someone tries to open it when it is already open.

      Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

      A 1 Reply Last reply
      0
      • C Christian Graus

        If the pages are popups, then you can do this using javascript. keep a reference to each open window and focus on it if someone tries to open it when it is already open.

        Christian Graus Driven to the arms of OSX by Vista. "I am new to programming world. I have been learning c# for about past four weeks. I am quite acquainted with the fundamentals of c#. Now I have to work on a project which converts given flat files to XML using the XML serialization method" - SK64 ( but the forums have stuff like this posted every day )

        A Offline
        A Offline
        Abhishek Rana
        wrote on last edited by
        #3

        Thanks for replaying But these pages are not popups these are the master form , whats the requirement is that when once the form is open and user agian tries to open it it should not do any thing.

        B 1 Reply Last reply
        0
        • A Abhishek Rana

          Thanks for replaying But these pages are not popups these are the master form , whats the requirement is that when once the form is open and user agian tries to open it it should not do any thing.

          B Offline
          B Offline
          binarymax
          wrote on last edited by
          #4

          Keep a list of the open pages in a Session object. For each event that would open a page (clicking a link, clicking a button, etc), check the target page versus the session list and see if it exists. Open the page for the user based on that.

          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