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. Window.showModalDialog

Window.showModalDialog

Scheduled Pinned Locked Moved ASP.NET
tutorialhelpquestion
3 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.
  • C Offline
    C Offline
    chintan1979
    wrote on last edited by
    #1

    Hi, I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? Chintan

    I P 2 Replies Last reply
    0
    • C chintan1979

      Hi, I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? Chintan

      I Offline
      I Offline
      Ian Darling
      wrote on last edited by
      #2

      chintan1979 wrote: I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? You may need to fiddle around with this a bit. window.showModalDialog can return a value (see the returnValue property), which could be stuffed into a variable, or the value a hidden INPUT field for subsequent posting back, or used in a querystring to load another page (set location.href). Alternatively, post-back in the modal dialog (remember to set <base target=_self>), and store the values in a database or something.


      Ian Darling "If we've learned anything from history, it's that those who feed trolls are condemned to repetitive conversations. Or something like that." - Eric Lippert

      1 Reply Last reply
      0
      • C chintan1979

        Hi, I am displaying a page using "window.showmodaldialog" to show some help to the user. Now I want to retrive the values selected by the user. I am using tables and tds to display the help. can any one guide me on how to get the user selection in the parent form from where this dialog is opend?? Chintan

        P Offline
        P Offline
        Paul Watson
        wrote on last edited by
        #3

        I can't remember if a modal dialog passes on the parent but give this a bash: window.opener.document.getElementById("controlID").value regards, Paul Watson Bluegrass South Africa Chris Maunder wrote: "I'd rather cover myself in honey and lie on an ant's nest than commit myself to it publicly." Jon Sagara replied: "I think we've all been in that situation before." Crikey! ain't life grand?

        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