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. Modal window

Modal window

Scheduled Pinned Locked Moved ASP.NET
helpquestion
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.
  • R Offline
    R Offline
    Ritwik Sanyal
    wrote on last edited by
    #1

    Hi I am opening an aspx page in a modal window using vbscript command window.showmodaldialog(). It is working fine but when ever I am clicking on any button on the modal window to perform any action a new window is being opened which is having the same .aspx file. eg: I am opening b.aspx from a.aspx on button click of a button on a.aspx in a modal window using the vbscript command. So, b.aspx is being opened in a new modal window. Now this b.aspx has a button which will say populate a datagrid on b.aspx itself. But whenever I am clicking on the button a new window is being opened containing b.aspx and having the datagrid being populated in the new window, the modal window is remained open as well. Can any body please help me on this? Thanks in advance

    I H 2 Replies Last reply
    0
    • R Ritwik Sanyal

      Hi I am opening an aspx page in a modal window using vbscript command window.showmodaldialog(). It is working fine but when ever I am clicking on any button on the modal window to perform any action a new window is being opened which is having the same .aspx file. eg: I am opening b.aspx from a.aspx on button click of a button on a.aspx in a modal window using the vbscript command. So, b.aspx is being opened in a new modal window. Now this b.aspx has a button which will say populate a datagrid on b.aspx itself. But whenever I am clicking on the button a new window is being opened containing b.aspx and having the datagrid being populated in the new window, the modal window is remained open as well. Can any body please help me on this? Thanks in advance

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

      try putting: <base target=_self> in the HEAD of your aspx page.


      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
      • R Ritwik Sanyal

        Hi I am opening an aspx page in a modal window using vbscript command window.showmodaldialog(). It is working fine but when ever I am clicking on any button on the modal window to perform any action a new window is being opened which is having the same .aspx file. eg: I am opening b.aspx from a.aspx on button click of a button on a.aspx in a modal window using the vbscript command. So, b.aspx is being opened in a new modal window. Now this b.aspx has a button which will say populate a datagrid on b.aspx itself. But whenever I am clicking on the button a new window is being opened containing b.aspx and having the datagrid being populated in the new window, the modal window is remained open as well. Can any body please help me on this? Thanks in advance

        H Offline
        H Offline
        hxxbin
        wrote on last edited by
        #3

        I have the same trouble, with _self target didn't work. This is because a ModelDialog can change de document.location, maybe you'll need change de window.showmodaldialog() to window.open(). ---- hxxbin

        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