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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. pop up window using javascript in response.write

pop up window using javascript in response.write

Scheduled Pinned Locked Moved ASP.NET
javascripthelpquestion
3 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.
  • M Offline
    M Offline
    MeterMan
    wrote on last edited by
    #1

    Can someone please have a look at this and explain to me why the following happens? 1) when i click on say welding.doc it doesn't popup and my popup blocker in firefox is turned off. 2) the item is in my inetpub root dir as welding.doc so I don't see why it doesn't load when i type http://localhost/welding.doc it shows just fine. here is my code Protected Sub ddnNotes_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddnNotes.SelectedIndexChanged 'Response.Write("var win=window.open('" & ddnNotes.SelectedValue & "',null,'width=510,height=255,top=250,left=250','true');") End Sub thanks for the help. MeterMan "Live life to its fullest because, you never know when it will be taken away."

    C M 2 Replies Last reply
    0
    • M MeterMan

      Can someone please have a look at this and explain to me why the following happens? 1) when i click on say welding.doc it doesn't popup and my popup blocker in firefox is turned off. 2) the item is in my inetpub root dir as welding.doc so I don't see why it doesn't load when i type http://localhost/welding.doc it shows just fine. here is my code Protected Sub ddnNotes_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddnNotes.SelectedIndexChanged 'Response.Write("var win=window.open('" & ddnNotes.SelectedValue & "',null,'width=510,height=255,top=250,left=250','true');") End Sub thanks for the help. MeterMan "Live life to its fullest because, you never know when it will be taken away."

      C Offline
      C Offline
      Chetan visodiya
      wrote on last edited by
      #2

      I am not sure about it is working or not. but you can try to use a following code, may be it's working. Response.Write("var win=window.open('/" & ddnNotes.SelectedValue & "',null,'width=510,height=255,top=250,left=250','true');") Chetan Visodiya

      1 Reply Last reply
      0
      • M MeterMan

        Can someone please have a look at this and explain to me why the following happens? 1) when i click on say welding.doc it doesn't popup and my popup blocker in firefox is turned off. 2) the item is in my inetpub root dir as welding.doc so I don't see why it doesn't load when i type http://localhost/welding.doc it shows just fine. here is my code Protected Sub ddnNotes_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddnNotes.SelectedIndexChanged 'Response.Write("var win=window.open('" & ddnNotes.SelectedValue & "',null,'width=510,height=255,top=250,left=250','true');") End Sub thanks for the help. MeterMan "Live life to its fullest because, you never know when it will be taken away."

        M Offline
        M Offline
        minhpc_bk
        wrote on last edited by
        #3

        I would double check the rendered html markup by doing a view source, make sure the link is correct. Also, the Page class (or the ClientScriptManager in the ASP.NET 2) provides a set of utility methods to emit the script at the server side that you want to use instead of the Response.Write method.

        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