471,573 Members | 1,147 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,573 software developers and data experts.

File Unavailable ASP code

I created a form and sent the inputs to an asp file where I use the
entry to open an excel file by saying

Response.Redirect("filename")
I want to use this because I will be sending new reports everyday and
don't want to update the list of available reports for the user to
choose from. This all works fine, my question is...Does anyone know
how to get a pop up or something instead of going to This page cannot
be found error page when the file is not available? Not sure how I
would code it to check for the file and then give me a pop up if it
isn't there.
Thanks

May 30 '06 #1
6 1031
Clarification: What they now see is drop downs for day, month, and
year.

May 30 '06 #2

jn*****@unt.edu wrote:
I created a form and sent the inputs to an asp file where I use the
entry to open an excel file by saying

Response.Redirect("filename")
I want to use this because I will be sending new reports everyday and
don't want to update the list of available reports for the user to
choose from. This all works fine, my question is...Does anyone know
how to get a pop up or something instead of going to This page cannot
be found error page when the file is not available? Not sure how I
would code it to check for the file and then give me a pop up if it
isn't there.
Thanks


Did my suggestion in the other group not work then?

--
Mike Brind

May 30 '06 #3
Use the Scripting.FileSystemObject class to check for file existance

--

<jn*****@unt.edu> a écrit dans le message de news:
11**********************@j73g2000cwa.googlegroups. com...
I created a form and sent the inputs to an asp file where I use the
entry to open an excel file by saying

Response.Redirect("filename")
I want to use this because I will be sending new reports everyday and
don't want to update the list of available reports for the user to
choose from. This all works fine, my question is...Does anyone know
how to get a pop up or something instead of going to This page cannot
be found error page when the file is not available? Not sure how I
would code it to check for the file and then give me a pop up if it
isn't there.
Thanks

May 30 '06 #4
I'm looking right now....just reposting to see what others said. Thank
you

May 30 '06 #5
Got it Mike. Thanks. One more question, is there a way to say
<!--#include virtual="filename"--> and have that filename be a string I
created?

Thanks again

May 30 '06 #6
Got that too...I'm good. Thanks to you both

May 30 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by darkhorse | last post: by
7 posts views Thread by Sherry Littletree | last post: by
reply views Thread by Simon McCulloch | last post: by
3 posts views Thread by jamie | last post: by
11 posts views Thread by Bob Bedford | last post: by
9 posts views Thread by tshad | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.