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 problem in ASP.NET

window.showModalDialog problem in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminhelp
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.
  • T Offline
    T Offline
    TariqMahmood
    wrote on last edited by
    #1

    when i used this coding to open a modal window it open a modal window but problem is that if i put a server control on this modal page i always open a new window. i also a lnkbutton but same thing occur with link button. window.showModalDialog("AddressDetails.aspx","","dialogWidth:500px;dialogHeight:500px") so currently i using the window.open but if any solution of using window.showModalDialog then this will be nice for my project. Tariq Mahmood Software Engineer ITSecurities Pvt Ltd

    I 1 Reply Last reply
    0
    • T TariqMahmood

      when i used this coding to open a modal window it open a modal window but problem is that if i put a server control on this modal page i always open a new window. i also a lnkbutton but same thing occur with link button. window.showModalDialog("AddressDetails.aspx","","dialogWidth:500px;dialogHeight:500px") so currently i using the window.open but if any solution of using window.showModalDialog then this will be nice for my project. Tariq Mahmood Software Engineer ITSecurities Pvt Ltd

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

      If I remember correctly, in your AddressDetails.aspx page, put the following into the <head> tag: <base target="_self"> Hope that helps


      Ian Darling The world is a thing of utter inordinate complexity ... that such complexity can arise ... out of such simplicity ... is the most fabulous extraordinary idea ... once you get some kind of inkling of how that might have happened - it's just wonderful ... the opportunity to spend 70 or 80 years of your life in such a universe is time well spent as far as I am concerned - Douglas Adams

      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