Below is the code.
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow = window.open(' "
sResult = sResult & "mywindow.parent.frames[1].location = ' "
sResult = sResult & "mywindow.parent.frames[0].location = ' </script>"
Response.Write(sResult)
End Sub
I am calling this in LinkButton(asp.net servercontrol) Click event
it opens the new window and the new window has got the frames with in frames and frames with in those frames.
the above code works fine on local boxes and once the code is pushed to server(testing box), it works for 1st time and then on it stops working and i get a message "mywindow.parent.frames.1 is null or not a object error".
while pushing the localhost is made to the respective box name.
i cannot imagine a reason for working once and not working again., if anyone recall the same error before and have fixed please let me know?
any help is appriciated
Kshoot
language = asp.net/vb.net
private sub openW()
sResult = sResult & "<script language=javascript> mywindow = window.open(' "
sResult = sResult & "mywindow.parent.frames[1].location = ' "
sResult = sResult & "mywindow.parent.frames[0].location = ' </script>"
Response.Write(sResult)
End Sub
I am calling this in LinkButton(asp.net servercontrol) Click event
it opens the new window and the new window has got the frames with in frames and frames with in those frames.
the above code works fine on local boxes and once the code is pushed to server(testing box), it works for 1st time and then on it stops working and i get a message "mywindow.parent.frames.1 is null or not a object error".
while pushing the localhost is made to the respective box name.
i cannot imagine a reason for working once and not working again., if anyone recall the same error before and have fixed please let me know?
any help is appriciated
Kshoot