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. Error in javascript to open new window - netilla platform asp.net

Error in javascript to open new window - netilla platform asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptasp-netsysadmin
1 Posts 1 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
    milan
    wrote on last edited by
    #1

    Hi, I have got a weird problem opening a simple .aspx page using a Javascript on the click of ASP.net server control. It works perfectly fine in my local system. Scenario: The application is deployed to production server. Clients get remote access to the application thr' Netilla platform which runs in https mode. Code snippet: Protected Sub LinkButton2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton2.Click 'Pop up new window for address collection... Dim x As String x = lstPickup.SelectedValue Dim sb As New System.Text.StringBuilder() sb.Append("<script language='javascript'>") sb.Append("alert('" & x & "');") sb.Append("window.open('CollectionAddress.aspx?selectedPickup=" + x + "', 'CollectionAddressPage',") sb.Append("'width=500, height=500, menubar=yes, resizable=no');") sb.Append("</script>") Dim t As Type t = Me.GetType() If Not ClientScript.IsClientScriptBlockRegistered(t, "PopupScript") Then ClientScript.RegisterClientScriptBlock(t, "PopupScript", sb.ToString()) End If End Sub The application URL looks is http://myApplication/Reserve.aspx but when browsed using Netilla it looks like.. https://ras.abc.co.uk/,host=192.168.145.32,port=80,proto=http/myApplication/Reserve.aspx Okay..now the funny thing is that the same code works if it is copied to another new pages with nothing but just the above code and a button. Weird. Any help would be appreciated. Many thanks Milan G

    Milan

    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