Author: Ramjee | Posted on: 7/2/2009 7:00:19 AM | Views : 270

 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 ...