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