Hi, could have sworn I used this before and don't understand why this
isn't working?
I have a button with onclick event:
do some database updates, etc.
then, open a new window (a confirmation that updates are done) and close
the current form.
If lreturn2 <> -1 Then
Response.Write( "<script
language=javasc ript>parent.rig ht.location='Er rorMsgEmail.asp x'</script>"
)
Else
'load confirmation page
Response.Write( "<script
language=javasc ript>window.ope ner.location='U serMsgTimerClos e.aspx';self
.close()</script>")
End If
In debug (vb.net), the Response.write line in Else gets highlighted but
then the form just "appears" and ignores it. I tried putting a variable
on page load (if postback) but the page doesn't reload after "submit".
Admittedly, a bit confused, if anyone is in the mood to enlighten me?
Thanks, Kathy
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!