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. C#
  4. Postback

Postback

Scheduled Pinned Locked Moved C#
javascripttoolsquestion
7 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.
  • A Offline
    A Offline
    Agweet
    wrote on last edited by
    #1

    Hi All...Can any1 assist plz...i hav a main page "frmMain.aspx" and this page calls popup via window.open called "frmPopup.aspx". i want the popup page to force a postback on the main page..the code i am using is: string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>"; if (!Page.ClientScript.IsClientScriptBlockRegistered(scriptString)) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString); } can any1 tell me wat im doing wrong?

    living life on the flip side

    C J 2 Replies Last reply
    0
    • A Agweet

      Hi All...Can any1 assist plz...i hav a main page "frmMain.aspx" and this page calls popup via window.open called "frmPopup.aspx". i want the popup page to force a postback on the main page..the code i am using is: string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>"; if (!Page.ClientScript.IsClientScriptBlockRegistered(scriptString)) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString); } can any1 tell me wat im doing wrong?

      living life on the flip side

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

      Agweet wrote:

      can any1 tell me wat im doing wrong?

      Not asking in the ASP.NET forum ?

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      A N 2 Replies Last reply
      0
      • C Christian Graus

        Agweet wrote:

        can any1 tell me wat im doing wrong?

        Not asking in the ASP.NET forum ?

        Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

        A Offline
        A Offline
        Agweet
        wrote on last edited by
        #3

        its a codebehind call!

        living life on the flip side

        N 1 Reply Last reply
        0
        • C Christian Graus

          Agweet wrote:

          can any1 tell me wat im doing wrong?

          Not asking in the ASP.NET forum ?

          Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Ahhh, I hate univoters. 5ed

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          1 Reply Last reply
          0
          • A Agweet

            its a codebehind call!

            living life on the flip side

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            You are supposed to post your question in a correct forum. This is what he meant.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            1 Reply Last reply
            0
            • A Agweet

              Hi All...Can any1 assist plz...i hav a main page "frmMain.aspx" and this page calls popup via window.open called "frmPopup.aspx". i want the popup page to force a postback on the main page..the code i am using is: string scriptString = "<script language=JavaScript> window.opener.document.forms(0).submit(); </script>"; if (!Page.ClientScript.IsClientScriptBlockRegistered(scriptString)) { Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "submitScript", scriptString); } can any1 tell me wat im doing wrong?

              living life on the flip side

              J Offline
              J Offline
              J4amieC
              wrote on last edited by
              #6

              Agweet wrote:

              can any1 tell me wat im doing wrong

              Yes, some keys on your keyboard appear to be stuck, and others seem to be in the wrong place altogether.

              C 1 Reply Last reply
              0
              • J J4amieC

                Agweet wrote:

                can any1 tell me wat im doing wrong

                Yes, some keys on your keyboard appear to be stuck, and others seem to be in the wrong place altogether.

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

                ROTFL !!!

                Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

                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