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. How to Redirect to a Dialog not a Window?

How to Redirect to a Dialog not a Window?

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
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.
  • S Offline
    S Offline
    sonyiti
    wrote on last edited by
    #1

    Here is the problem, Our current project have some page which will pop up some subWindow,and we want to disable the main window until the user finished the operation on subwindow, so we use JavaScrip's function showModalDialog() to show a modal dialog instead of window.open(),but the problem is the the page which will show in the dialog must be specified when we call showmodaldialog().We want to decide the page at run time ,and we want to excute some operation before we've been redirect to that page,which be displayed in the dialog.How can we do this?:doh: -- modified at 23:00 Sunday 6th November, 2005

    C R 2 Replies Last reply
    0
    • S sonyiti

      Here is the problem, Our current project have some page which will pop up some subWindow,and we want to disable the main window until the user finished the operation on subwindow, so we use JavaScrip's function showModalDialog() to show a modal dialog instead of window.open(),but the problem is the the page which will show in the dialog must be specified when we call showmodaldialog().We want to decide the page at run time ,and we want to excute some operation before we've been redirect to that page,which be displayed in the dialog.How can we do this?:doh: -- modified at 23:00 Sunday 6th November, 2005

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

      You're already using javascript, just change the code so that the page to be run can be specified. If you decide which page to show in the code behind, then write the correct page into the call to showModalDialog when you add the script block in your codebehind. Christian Graus - Microsoft MVP - C++

      1 Reply Last reply
      0
      • S sonyiti

        Here is the problem, Our current project have some page which will pop up some subWindow,and we want to disable the main window until the user finished the operation on subwindow, so we use JavaScrip's function showModalDialog() to show a modal dialog instead of window.open(),but the problem is the the page which will show in the dialog must be specified when we call showmodaldialog().We want to decide the page at run time ,and we want to excute some operation before we've been redirect to that page,which be displayed in the dialog.How can we do this?:doh: -- modified at 23:00 Sunday 6th November, 2005

        R Offline
        R Offline
        rihdus
        wrote on last edited by
        #3

        hi there?? Have you tried passing the pagename as parameter to your javascript function. or you can send me your code, i can help you.:) Any systematic work reflects its significance for a long time, Though I m not totally against "The Prototyping".So let's discuss in depth...

        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