CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Response Redirect seems to overpower my Response.

Print topic Send  topic

Author Message
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

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.