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. Using Modal ASp.NET pages

Using Modal ASp.NET pages

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
2 Posts 2 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.
  • D Offline
    D Offline
    Dr Herbie
    wrote on last edited by
    #1

    Hi, I haven't used ASP.NET much before so excuse the total ignorance I am about to display. :doh: I have an application that has both a desktop and an ASP interface. What I want to be able to do is (in windows speak): Show modal dialog A. User clicks button Execute code of style : Start button handler. Create Dialog B (dynamic) ShowDialog B Retrieve input from Dialog B Process data End button handler. In other words, I want to show Dialog B, blocking the process flow until it completes, then immediately grab the data from it and continue. So far I have only been able to show ASP.NET pages using non-modal methds, so that as soon as the show is executed my code continues to retriee the data before the dialog has completed showing. The only colution is to add an event handler to the dialog close event and continue the data processing on the event handler. This makes the code unnecessarily messy and hard to follow. Is there something really obvious that I've missed? :wtf: Dr Herbie Remember, half the people out there have below average IQs.

    C 1 Reply Last reply
    0
    • D Dr Herbie

      Hi, I haven't used ASP.NET much before so excuse the total ignorance I am about to display. :doh: I have an application that has both a desktop and an ASP interface. What I want to be able to do is (in windows speak): Show modal dialog A. User clicks button Execute code of style : Start button handler. Create Dialog B (dynamic) ShowDialog B Retrieve input from Dialog B Process data End button handler. In other words, I want to show Dialog B, blocking the process flow until it completes, then immediately grab the data from it and continue. So far I have only been able to show ASP.NET pages using non-modal methds, so that as soon as the show is executed my code continues to retriee the data before the dialog has completed showing. The only colution is to add an event handler to the dialog close event and continue the data processing on the event handler. This makes the code unnecessarily messy and hard to follow. Is there something really obvious that I've missed? :wtf: Dr Herbie Remember, half the people out there have below average IQs.

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      ASP.NET doesn't support Modal dialogs because that would be dependent on the browser supporting them. Also, web applications are stateless, which means that on each page request the server sees it as if it is the first time it has ever happened. ASP.NET provides some smokescreen illusions to make it appear as if it is a continuous application to make development easier, however this abstraction doesn't work out in many places the developer has to work around these limitations.


      "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

      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