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. How can i close page from another page?

How can i close page from another page?

Scheduled Pinned Locked Moved ASP.NET
questionsysadminlearning
6 Posts 4 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.
  • K Offline
    K Offline
    kimo code
    wrote on last edited by
    #1

    Dear all; of course all of us use Response.redirect("url"); or Server.Transfer("url"); to open page from another page how can i close page from another page ? and is there a way to open and close the page in the same time to get the session or any thing else in this page.

    Kareem Elhosseny

    D T C 3 Replies Last reply
    0
    • K kimo code

      Dear all; of course all of us use Response.redirect("url"); or Server.Transfer("url"); to open page from another page how can i close page from another page ? and is there a way to open and close the page in the same time to get the session or any thing else in this page.

      Kareem Elhosseny

      D Offline
      D Offline
      dekart_roo
      wrote on last edited by
      #2

      I'm not entirely sure what you're asking about... But I think you might be able to find a solution through javascript. You can use the function window.open() to open a page (typically used for a popup.) If you do that, on the newly opened page you can refference the page that opened it, via window.opener. So window.opener.close() would close the page that opened the current open, provided the current one was opened via window.open(). I hope that helps answer the question?

      K 1 Reply Last reply
      0
      • K kimo code

        Dear all; of course all of us use Response.redirect("url"); or Server.Transfer("url"); to open page from another page how can i close page from another page ? and is there a way to open and close the page in the same time to get the session or any thing else in this page.

        Kareem Elhosseny

        T Offline
        T Offline
        ToddHileHoffer
        wrote on last edited by
        #3

        Check out the following for some javascript tutorials. You should be able to find what you are looking for. http://www.echoecho.com/jswindows.htm

        I didn't get any requirements for the signature

        1 Reply Last reply
        0
        • K kimo code

          Dear all; of course all of us use Response.redirect("url"); or Server.Transfer("url"); to open page from another page how can i close page from another page ? and is there a way to open and close the page in the same time to get the session or any thing else in this page.

          Kareem Elhosseny

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I'm sorry to report that you are hopelessly lost. For several days now you've asked questions that indicate that you think that webforms are like winforms. I recommend you buy a book on ASP.NET and read it really fast, before your boss/client realises just how far you are out of your depth.

          Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

          K 1 Reply Last reply
          0
          • C Christian Graus

            I'm sorry to report that you are hopelessly lost. For several days now you've asked questions that indicate that you think that webforms are like winforms. I recommend you buy a book on ASP.NET and read it really fast, before your boss/client realises just how far you are out of your depth.

            Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

            K Offline
            K Offline
            kimo code
            wrote on last edited by
            #5

            Dear; of course i didn't have your experience and i still junior right now but i imagine something maybe thats right i want to make something like back in any browser if it available plz till me if not can i open the page and close it while i take from it something like in windows and if u have books in asp can u send it to me thx for your time

            Kareem Elhosseny

            1 Reply Last reply
            0
            • D dekart_roo

              I'm not entirely sure what you're asking about... But I think you might be able to find a solution through javascript. You can use the function window.open() to open a page (typically used for a popup.) If you do that, on the newly opened page you can refference the page that opened it, via window.opener. So window.opener.close() would close the page that opened the current open, provided the current one was opened via window.open(). I hope that helps answer the question?

              K Offline
              K Offline
              kimo code
              wrote on last edited by
              #6

              my dear; thx for your attention and your precious time i want to close the page not lookup window we can open the page with Respone.redirect()command from another page i want when i open this page take from it some sessions and close it in the same time because i didnt want the user see it while i take my requirment plz help me i know it can be rough but plz help me .

              Kareem Elhosseny

              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