I have an ASP.NET application that calls another popup window. The code for calling it is below. It is called from a button click event. The button itself is inside of a Gridview edititemtemplate.
The problem I'm having is that the popup pops up, but then it prompty hides behind the calling window. How can I stop that from happening?
Dim StartDate As TextBox = CType(GridView1.Rows.Item(index).Controls.Item(1).FindControl("txtStartDate"), TextBox)
Dim msg As String = "window.open('PopUp.aspx?textbox=" & StartDate.ClientID & "','cal','status=no,width=200,height=180,left=270,top=220')"