On error business

Results 1 to 3 of 3

Thread: On error business

  1. #1
    T ;) Guest

    Default On error business

    I am ftping an access datbase which has been updated offline to my site - obviously if someone tries to access the site while the ftp is going on then it generates an error as the old database is being overwritten. I want to do a statement like <BR>on error goto err:<BR>......<BR>.....<BR>......<BR>err:<BR>respo nse.write "Sorry the site is under maintenance please check back in a few minutes<BR>but it doesnt seem to work <BR>does anyone have any examples of how I could do this or does vbscript only support <BR>on error resume next??<BR>

  2. #2
    paul_merton @ hotmail.com Guest

    Default RE: On error business

    As far as I am aware, you can only use &#039resume next&#039 in ASP VB scripting.<BR><BR>One good way of getting round your problem would be to do the following:-<BR><BR>&#060;%<BR>on error resume next<BR>REM --- do your database bits here.<BR>If Not Err.Number = 0 then<BR> Response.Write("Please check back later.")<BR> Response.End<BR>End If<BR>on error goto 0 &#039 (zero - remove error handling)<BR>REM --- do your normal stuff here<BR>%&#062;

  3. #3
    Join Date
    Dec 1969

    Default RE: On error business

    thanks ;)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts