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. window.open( "URL" ..... for localhost is not working

window.open( "URL" ..... for localhost is not working

Scheduled Pinned Locked Moved ASP.NET
helptoolsquestion
7 Posts 3 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
    amit k mistry
    wrote on last edited by
    #1

    Hello Experts, Following is the code not working for me .Could anyone please help me out regarding the issue? Thanks in advance.

    try
    {
    Response.Write("<script>window.open('http://localhost:1390/WebClient/WebPages/CommonPages/HomePage.aspx','\_new','height='+screen.height+',width='+screen.width+',top=0,left=0, status=no,toolbar=no,menubar=yes,location=no,titlebar=no');</script>");
    }
    catch (Exception ex)
    {
    Response.Write(ex);
    }

    C D 2 Replies Last reply
    0
    • A amit k mistry

      Hello Experts, Following is the code not working for me .Could anyone please help me out regarding the issue? Thanks in advance.

      try
      {
      Response.Write("<script>window.open('http://localhost:1390/WebClient/WebPages/CommonPages/HomePage.aspx','\_new','height='+screen.height+',width='+screen.width+',top=0,left=0, status=no,toolbar=no,menubar=yes,location=no,titlebar=no');</script>");
      }
      catch (Exception ex)
      {
      Response.Write(ex);
      }

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

      What does 'not working' mean ? What happens ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      A 1 Reply Last reply
      0
      • C Christian Graus

        What does 'not working' mean ? What happens ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        A Offline
        A Offline
        amit k mistry
        wrote on last edited by
        #3

        http://..... url it doesn't open in the new page

        C 1 Reply Last reply
        0
        • A amit k mistry

          http://..... url it doesn't open in the new page

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

          But it does open ? Have you tried _blank for the target ? Have you tried with more than one browser ? Do you have any sort of popup blocker installed ?

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          A 1 Reply Last reply
          0
          • C Christian Graus

            But it does open ? Have you tried _blank for the target ? Have you tried with more than one browser ? Do you have any sort of popup blocker installed ?

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            A Offline
            A Offline
            amit k mistry
            wrote on last edited by
            #5

            But it does open ? no Have you tried _blank for the target ? means??? is login page so if i want to open for the other page in same directory then its working. Have you tried with more than one browser ? Do you have any sort of popup blocker installed ? no i want to just try for IE only (ofcourse 6.0) amit

            C 1 Reply Last reply
            0
            • A amit k mistry

              But it does open ? no Have you tried _blank for the target ? means??? is login page so if i want to open for the other page in same directory then its working. Have you tried with more than one browser ? Do you have any sort of popup blocker installed ? no i want to just try for IE only (ofcourse 6.0) amit

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

              amit k mistry wrote:

              But it does open ? no

              Then perhaps you need to be clearer. Or is this some sort of a puzzle that you want me to solve ? What's the prize ?

              amit k mistry wrote:

              means??? is login page so if i want to open for the other page in same directory then its working.

              OK - but you're providing a full URL, so it's not a relative path issue. Have you viewed the source to see if it's being rendered ? Tried adding an alert to see if it's being run ? Typed the url being passed to the browser ( copied from the browser HTML ) into your browser to see if it opens in that context ?

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              1 Reply Last reply
              0
              • A amit k mistry

                Hello Experts, Following is the code not working for me .Could anyone please help me out regarding the issue? Thanks in advance.

                try
                {
                Response.Write("<script>window.open('http://localhost:1390/WebClient/WebPages/CommonPages/HomePage.aspx','\_new','height='+screen.height+',width='+screen.width+',top=0,left=0, status=no,toolbar=no,menubar=yes,location=no,titlebar=no');</script>");
                }
                catch (Exception ex)
                {
                Response.Write(ex);
                }

                D Offline
                D Offline
                Dinesh Reghunath
                wrote on last edited by
                #7

                hi Sometime back i also faced same issue, i solved by following method

                ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Success", "fnPayment()", True)

                fnPayment() javascript

                function fnPayment() {
                var windowFeatures;
                windowFeatures = "type=fullWindow,fullscreen,toorbar=no,status=yes,scrollbars=yes,left=0, top=0;";
                window.open('aspxtest.aspx?reg=' + intReg , '_inst', windowFeatures);
                }

                hope this may help you

                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