There are many ways to call a popup window from aspx. I only post the ones I have used. If you have used other ways. Please feel free to contribute. Thanks.
Sorry for the lack of explanations, as I am still learning myself.
Dim PopUpScript As String
PopUpScript = “javascript: window.open(‘Popup.aspx?’,'popupage’,’scrollbars=yes,width=790,height=510,resizable=no,left=10′)”
ScriptManager.RegisterStartupScript(Me, Me.GetType(), “PopUpScript”, PopUpScript, True)
To pass a variable ID to the next page, I use:
PopUpScript = “javascript: window.open(‘Popup.aspx?ID=1′,’popupage’,’scrollbars=yes,width=790,height=510,resizable=no,left=10′)”
2nd Method
Protected Sub lnkbutton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles lnkbutton.Click
lnkbutton.Attributes.Add(“onclick”, “window.open(‘http://www.yahoo.com’,'null’,'height=768, width=1024,status= no, resizable=yes, scrollbars=yes, toolbar=no,location=no,menubar=no ‘);”)
End Sub