It's not just IE. This is standard protocol when you reload a
page that is the result of a form post.
If you want to avoid it, you can (a) change to a GET to access
the current page, or (b) do another postback (either by calling
__doPostBack or just using a standard document.formName.submit() call.
Cheers,
Peter
-----Original Message-----
From: [email protected] On Behalf Of Eliezer Broder
I have a sub that I use to close a popup and refresh the parent webpage:
*Private Sub ClosePopupAndRefreshParentWindow()
Dim script As String = "<script language=""javascript"">" &
System.Environment.NewLine & "self.close()" & System.Environment.NewLine
& " opener.location.reload(); self.close();" & "</script>"
Page.RegisterStartupScript("PopupCloseAndRefresh", script)
End Sub*
Up until now, this sub would be executed and the parent page would
refresh
instantly. *Now*, after the above sub executes, IE pops up a question to
the
user prompting them to *Retry* or *Cancel *.
*This warning/prompt annoys me to no end!* How can I avoid that IE
warning/prompt thing from popping up before refreshing the parent???
Thanks so much,
Eliezer
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/