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. Page refresh

Page refresh

Scheduled Pinned Locked Moved ASP.NET
5 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.
  • O Offline
    O Offline
    omlac
    wrote on last edited by
    #1

    is there a refresh method for window.opener.location class. the one below is reloading the whole page but i just want a postback if (window.opener && !window.opener.closed) { window.opener.location.reload(); }

    B R O C 4 Replies Last reply
    0
    • O omlac

      is there a refresh method for window.opener.location class. the one below is reloading the whole page but i just want a postback if (window.opener && !window.opener.closed) { window.opener.location.reload(); }

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      You can do as below if (window.opener && !window.opener.closed) { window.opener.location.href = window.opener.location.href; } It'll postback the page.

      Cheers!! Brij

      1 Reply Last reply
      0
      • O omlac

        is there a refresh method for window.opener.location class. the one below is reloading the whole page but i just want a postback if (window.opener && !window.opener.closed) { window.opener.location.reload(); }

        R Offline
        R Offline
        R Palanivel
        wrote on last edited by
        #3

        Hi omlac There is no Refresh mthod available in Javascript. Better you try the following code location.href="mention the same page name";

        R.Palanivel 10:01 4 Jan '06

        modified on Tuesday, August 19, 2008 8:08 AM

        1 Reply Last reply
        0
        • O omlac

          is there a refresh method for window.opener.location class. the one below is reloading the whole page but i just want a postback if (window.opener && !window.opener.closed) { window.opener.location.reload(); }

          O Offline
          O Offline
          omlac
          wrote on last edited by
          #4

          Hie, it reloaded the page again, is there anything else i have to do besides adding your code.

          1 Reply Last reply
          0
          • O omlac

            is there a refresh method for window.opener.location class. the one below is reloading the whole page but i just want a postback if (window.opener && !window.opener.closed) { window.opener.location.reload(); }

            C Offline
            C Offline
            ChrisKo 0
            wrote on last edited by
            #5

            If you want a postback, then just use formName.Submit(); or look into the __doPostBack() function.

            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