Asp On Error Goto Label
Contents |
Master PageValidation by ControlValidation by FunctionWebPartWPFXMLOn Error GoTo HandleError : On Error«Development«ASP.NetASP.NetDevelopmentOn ErrorOn Error GoTo HandleError <%@ Page asp on error goto 0 Language=VB Debug=true %>
help? Post your question and get tips & solutions from a community of 418,430 IT Pros & Developers. vbscript on error goto label It's quick & easy. script for on error goto errhandler P: 83
Vbscript On Error Goto Label Example
MATTXtwo is't asp supported for on error goto error handler? if so can anybody give me some hint
Vbs On Error Goto Label
for it... i need to make my page get to other link if detecting an error Nov 5 '08 #1 Post Reply Share this Question 3 Replies Expert 100+ P: http://www.java2s.com/Code/ASP/Development/OnErrorGoToHandleError.htm 979 DrBunchman Hi MATTXtwo, The first thing to do is to put the following line at the top of your page: Expand|Select|Wrap|Line Numbers <% OnErrorResumeNext %> This tells the interpreter to ignore any errors and carry on processing the script. The next thing you need is a bit of code to trap any errors which occur: Expand|Select|Wrap|Line Numbers <% IfNotErr.Number=0Then Response.WriteErr.Description https://bytes.com/topic/asp-classic/answers/851418-script-error-goto-errhandler Error.Clear EndIf %> You can put whatever you like in this second bit of code to handle the error as required. Hope this helps and let me know how you get on, Dr B Nov 5 '08 #2 reply P: 83 MATTXtwo Expand|Select|Wrap|Line Numbers <% OnErrorResumeNext %> Expand|Select|Wrap|Line Numbers <% IfNotErr.Number=0Then Response.WriteErr.Description Error.Clear EndIf %> Thanks DrB ... Can I do like this.. ON ERROR code top of page iif statement bottom of page? and can this code catch all error on pages? Nov 5 '08 #3 reply Expert 100+ P: 979 DrBunchman Yes, that's how it should work. Give it a go and let me know what happens. You should be able to force your page to error quite easily so you can test it. Dr B Nov 5 '08 #4 reply Message Cancel Changes Post your reply Join Now >> Sign in to post your reply or Sign up for a free account. Similar topics Help with On Error GoTo filtering out "#Error" Class returns 440 - automation error Error handlers and Exception handlers Error trapp
Problem with "on error goto label" code If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you http://forums.devx.com/showthread.php?11096-Problem-with-quot-on-error-goto-label-quot-code want to visit from the selection below. Results 1 to 3 of 3 Thread: Problem with "on error goto label" code Tweet Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 03-21-2001,12:36 PM #1 Tim Guest Problem with "on error goto label" code I'm trying to do the following in an ASP form: on error goto errhandler errhandler:
> > errhandler: >
> > > > errhandler: > >