jmccann
|
| Posted: 07/30/2002, 3:06 PM |
|
I have built an asp page that simply processes an uploaded image file. The ccs file processes the file on the OPEN Event. This works fine.
I want to capture certain condtions within the Open even and dipslay a popup window. See example below. If I don't have a Response.Redirect statement within my If statement, the Response.write works. If the response.Redirect is present, the Response.write doesnt appear to work. Control is passed to next page.
Can anyone help me to fix this so the Response.Write will work?
If File Is Nothing Then
Response.write "<script language = 'javascript'> alert('Your image was not updated') </script>"
'Response.Redirect "AdminItems.asp"
End If
|
|
|
 |
Alex Alexapolsky
|
| Posted: 07/31/2002, 2:21 AM |
|
This is how it's supposed to work.
You may need to create a page that will show this message and then it will
redirect to desired page.
If File Is Nothing Then
Response.Redirect "dummy.html"
End If
dummy.html :
<script language = 'javascript'> alert('Your image was not updated')
window.location = "AdminItems.asp";
</script>
|
|
|
 |
jmccann
|
| Posted: 07/31/2002, 12:46 PM |
|
Alex,
You're the Man!!
Many thanks. Your advice is exactly what I was trying to achieve.
jim mccann
|
|
|
 |
|