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. return value from showmodaldialog

return value from showmodaldialog

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

    hi all dev's i have a problem and want some help, i have a showmodaldialog and its working fine but when i finish from it and click on button (ReName) the showmodaldialog take fulll size page and stops in it, now am providing the code to be more clear for u:- (child page) function ReturnParam() { var password= window.dialogArguments; var old = document.getElementById("tbPasswordConfirm").value; if(password!=old) { alert('Password does not match....'); } else { var param = document.getElementById("tbNewPassword").value; alert('New Password have changet to ' + param); window.returnValue = param; window.close(); } } what seems to be the problem.....!!!!???

    A 1 Reply Last reply
    0
    • B baselanfouqa

      hi all dev's i have a problem and want some help, i have a showmodaldialog and its working fine but when i finish from it and click on button (ReName) the showmodaldialog take fulll size page and stops in it, now am providing the code to be more clear for u:- (child page) function ReturnParam() { var password= window.dialogArguments; var old = document.getElementById("tbPasswordConfirm").value; if(password!=old) { alert('Password does not match....'); } else { var param = document.getElementById("tbNewPassword").value; alert('New Password have changet to ' + param); window.returnValue = param; window.close(); } } what seems to be the problem.....!!!!???

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      use

      window.opener='self';
      window.close();

      Setting window.opener will ensure that the window will be closed on next window.close call. ;)

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      B 1 Reply Last reply
      0
      • A Abhishek Sur

        use

        window.opener='self';
        window.close();

        Setting window.opener will ensure that the window will be closed on next window.close call. ;)

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        My Latest Articles-->** Simplify Code Using NDepend
        Basics of Bing Search API using .NET
        Microsoft Bing MAP using Javascript

        B Offline
        B Offline
        baselanfouqa
        wrote on last edited by
        #3

        thx, that did work :)

        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