G
Guest
Help! I’m trying to get popups to work in asp.net. I’m Using the following
javascript code in a sub, but I can’t get the PopupWindow to work. At
first I thought the routine wasn’t working but it is. It looks like it’s the
window.open that’s not working. I have site popup allowed turned on, if I
replace window.open with alert it works, if I put the code in the html code
it works. Any suggestions?
Dim PopupScript As String = "<script language='javascript'>" & _
"window.open('popup.aspx', 'CustomPopUp', " & _
"'height=550, width=550, menubar=no, resizable=no');" & _
"</script>"
Me.RegisterStartupScript("PopupScript", PopupScript)
javascript code in a sub, but I can’t get the PopupWindow to work. At
first I thought the routine wasn’t working but it is. It looks like it’s the
window.open that’s not working. I have site popup allowed turned on, if I
replace window.open with alert it works, if I put the code in the html code
it works. Any suggestions?
Dim PopupScript As String = "<script language='javascript'>" & _
"window.open('popup.aspx', 'CustomPopUp', " & _
"'height=550, width=550, menubar=no, resizable=no');" & _
"</script>"
Me.RegisterStartupScript("PopupScript", PopupScript)