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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. window.showModalDialog problem

window.showModalDialog problem

Scheduled Pinned Locked Moved ASP.NET
javatoolshelptutorialquestion
4 Posts 2 Posters 1 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.
  • P Offline
    P Offline
    pss srinivasan
    wrote on last edited by
    #1

    When I click command button I am opening One new form like this "window.showModalDialog(urll, self , WinSettings)" using java script. first time that page lode code is executing next time if I click command button page lode is not executing how to solve this one?

    A 1 Reply Last reply
    0
    • P pss srinivasan

      When I click command button I am opening One new form like this "window.showModalDialog(urll, self , WinSettings)" using java script. first time that page lode code is executing next time if I click command button page lode is not executing how to solve this one?

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

      Dont use showModalDialog, it is IE specific. Rather use window.open. If you require Modal dialog, you can use div's to create custom popups in the page. :)

      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

      P 1 Reply Last reply
      0
      • A Abhishek Sur

        Dont use showModalDialog, it is IE specific. Rather use window.open. If you require Modal dialog, you can use div's to create custom popups in the page. :)

        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

        P Offline
        P Offline
        pss srinivasan
        wrote on last edited by
        #3

        USING COMMAND BUTTON I AM OPENING A NEW FORM USING JAVASCRIPT AS FOLLOWS "window.showModalDialog(urll, self , WinSettings)" ONCE I CLOSED THAT FORM, AND AGAIN IF I CLICK THE COMMAND BUTTON THAT FORM IS NOT OPENING. MEANS THE PAGE LOAD CODE IS EXECUTING ONLY FOR THE FIRST TIME. HOW CAN I SOLVE THIS PROBLEM?

        modified on Monday, November 23, 2009 5:28 AM

        A 1 Reply Last reply
        0
        • P pss srinivasan

          USING COMMAND BUTTON I AM OPENING A NEW FORM USING JAVASCRIPT AS FOLLOWS "window.showModalDialog(urll, self , WinSettings)" ONCE I CLOSED THAT FORM, AND AGAIN IF I CLICK THE COMMAND BUTTON THAT FORM IS NOT OPENING. MEANS THE PAGE LOAD CODE IS EXECUTING ONLY FOR THE FIRST TIME. HOW CAN I SOLVE THIS PROBLEM?

          modified on Monday, November 23, 2009 5:28 AM

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

          are you doing this during page postback ? why dont you add this when the page loads for the first time ? so that everytime the button is clicked it invokes the javascript. :)

          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

          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