in my asp.net +vb web i am using following code to open a new popup page with query string
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim queryString As String = "course.aspx?kno=" +knotxt.Text)
Dim newWin As String = "window.open('" & queryString & "');"
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin, True)
End Sub
this opens in a new window with full web page size . i tried to resize to a custom size with another code
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim queryString As String = "course_dtl.aspx)"
Dim newWin As String = "window.open('" & queryString & "','','width=400,height=200,toolbar=no,menubar=no');"
ClientScript.RegisterStartupScript(Me.GetType(), "pop", newWin, True)
End Sub
when i used the code above i opens ina predefined size but it is not working when i add my
?kno=" +knotxt.Text)
my basic requirement is
on button click open a new window with predefined size and close when parant page ia changed