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. General Programming
  3. .NET (Core and Framework)
  4. Hold the parent session when calling a showModalDialog child

Hold the parent session when calling a showModalDialog child

Scheduled Pinned Locked Moved .NET (Core and Framework)
questioncsharp
5 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.
  • J Offline
    J Offline
    Jose Alvarez de Lara
    wrote on last edited by
    #1

    Hi, I am developing a web app in VB.NET 1.1. In some Webforms I call a showModalDialog child, but when I close it, the parent session is removed. Please, how can I hold it? Thanks in advance, Jose Alvarez de Lara

    P 1 Reply Last reply
    0
    • J Jose Alvarez de Lara

      Hi, I am developing a web app in VB.NET 1.1. In some Webforms I call a showModalDialog child, but when I close it, the parent session is removed. Please, how can I hold it? Thanks in advance, Jose Alvarez de Lara

      P Offline
      P Offline
      puri keemti
      wrote on last edited by
      #2

      Modal dialogues can't refer to their parent using opener. You need to pass a reference to the parent in the second parameter to showModalDialog.

      J 1 Reply Last reply
      0
      • P puri keemti

        Modal dialogues can't refer to their parent using opener. You need to pass a reference to the parent in the second parameter to showModalDialog.

        J Offline
        J Offline
        Jose Alvarez de Lara
        wrote on last edited by
        #3

        Hi Puri, That is what I did. And I maintain a conversation between then parent and the child. I am thinking if it is possible to send the parent session to the child and bring it back to the parent when close the child. Thanks for your interesting, Jose

        J 1 Reply Last reply
        0
        • J Jose Alvarez de Lara

          Hi Puri, That is what I did. And I maintain a conversation between then parent and the child. I am thinking if it is possible to send the parent session to the child and bring it back to the parent when close the child. Thanks for your interesting, Jose

          J Offline
          J Offline
          Jose Alvarez de Lara
          wrote on last edited by
          #4

          Hello, There are two articles here in the Code Project. I am talking about "Those Crazy Popups" and "ASP.Net Modal Window Server Control". I am looking for something like them, but I need to fix those articles into my issue. Any help will be appreciate. Regards, Jose

          J 1 Reply Last reply
          0
          • J Jose Alvarez de Lara

            Hello, There are two articles here in the Code Project. I am talking about "Those Crazy Popups" and "ASP.Net Modal Window Server Control". I am looking for something like them, but I need to fix those articles into my issue. Any help will be appreciate. Regards, Jose

            J Offline
            J Offline
            Jose Alvarez de Lara
            wrote on last edited by
            #5

            Hi, I have found the answer googling. It is enough putting Response.Cache.SetCacheability(HttpCacheability.NoCache) in the Page_Load of pop up window. On the other hand here is the code snippet, Page1.aspx function DoDo(){ window.showModalDialog("Show.aspx","aa"); } LinkButton protected void Page_Load(object sender, EventArgs e) { Session["AA"] = "have a good day!"; } Show.aspx protected void Page_Load(object sender, EventArgs e) { if (Session["AA"] != null) Response.Write(Session["AA"].ToString()); else Response.Write("NULL.........."); } I hope this help to other people. Regards, Jose

            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