Hi there,
C# 'this' as argument doesn't work. It is working fine in VB.Net. My code are below
Protected Sub btnEnter_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnMaps.Click
Dim sURL As String = "whatever"
Common.OpenNewBrowserWindow(Me, sURL, "str1")
End Sub
Public Shared Sub OpenNewBrowserWindow(ByRef aspxPage As System.Web.UI.Page, ByVal sURL As String, ByVal sKey As String)
If (Not aspxPage.ClientScript.IsStartupScriptRegistered(sKey)) Then
aspxPage.ClientScript.RegisterStartupScript(aspxPage.GetType(), sKey, sOpenWindowScript)
  ...
Go to the complete details ...