biggs27
12-03-2002, 11:42 PM
I've got this chunk of code importing html into an asp:
<%
FileName = Server.MapPath(Request.Querystring("URL"))
Response.write CreateObject("Scripting.FileSystemObject").OpenTextFile _
(FileName, 1, False, False).readall
%>
If "URL" does not equal a valid URL, this error is displayed:
Microsoft VBScript runtime error '800a0035'
File not found
In this event, I would like to NOT display that error, but rather a different page in it's place (apologizing for the error, linking to my search page, etc.). What do I need to do to refer to another page (or display some alternate text)?
Thanks for your help!
Brian
<%
FileName = Server.MapPath(Request.Querystring("URL"))
Response.write CreateObject("Scripting.FileSystemObject").OpenTextFile _
(FileName, 1, False, False).readall
%>
If "URL" does not equal a valid URL, this error is displayed:
Microsoft VBScript runtime error '800a0035'
File not found
In this event, I would like to NOT display that error, but rather a different page in it's place (apologizing for the error, linking to my search page, etc.). What do I need to do to refer to another page (or display some alternate text)?
Thanks for your help!
Brian