S
Sehboo
On my ASP page, when I click a button, I want to do three things:
1. Check for some values.
2. Open a new window and pass some values as query string.
3. Redirect to some other page
Here is the code:
If (sServiceCenter = "*ALL") Then
sServiceCenter = "%"
End If
Dim scriptString As String = "<script language=""javascript"">"
scriptString = scriptString &
"mywindow=window.open('SBNIList.aspx?ServiceCenter=" & sServiceCenter
& _
"','_new','width=screen.width,height=screen.height,resizable=yes,status=no,toolbar=no,menubar=no,left=0,top=0,scrollbars=yes');</script>"
Response.Write(scriptString)
Response.Redirect("SBNIDone.aspx")
But it doesn't work. It just simply redirects and doesn't open the
new window. If I comment out the redirect line then it opens up the
new window.
Any idea?
1. Check for some values.
2. Open a new window and pass some values as query string.
3. Redirect to some other page
Here is the code:
If (sServiceCenter = "*ALL") Then
sServiceCenter = "%"
End If
Dim scriptString As String = "<script language=""javascript"">"
scriptString = scriptString &
"mywindow=window.open('SBNIList.aspx?ServiceCenter=" & sServiceCenter
& _
"','_new','width=screen.width,height=screen.height,resizable=yes,status=no,toolbar=no,menubar=no,left=0,top=0,scrollbars=yes');</script>"
Response.Write(scriptString)
Response.Redirect("SBNIDone.aspx")
But it doesn't work. It just simply redirects and doesn't open the
new window. If I comment out the redirect line then it opens up the
new window.
Any idea?