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 want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Error Handling....

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-06, 03:29
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
Error Handling....

Hi,
I have a built-in ASP Applicatioon. The Application is running nicely. But there are one major miss out. That is error handling. The ASP Application has no error handlers. Now I want to add to it. The ERROR HANDLER. But looking for some solution which can prevent me to include ther code to every single page. Can any one help me out n this regard...... ?



Thanks,
Rahul Jha
__________________
Reply With Quote
  #2 (permalink)  
Old 05-19-06, 16:59
csamuels csamuels is offline
Registered User
 
Join Date: Mar 2006
Location: south jersey, usa
Posts: 53
http://www.w3schools.com/asp/asp_incfiles.asp

Quote:
The #include Directive
You can insert the content of one ASP file into another ASP file before the server executes it, with the #include directive. The #include directive is used to create functions, headers, footers, or elements that will be reused on multiple pages.
__________________
"They say Moses split the Red Sea
I split the blunt and rolled the fat one, I'm deadly"
-- Tupac 'Blasphemy'
Reply With Quote
  #3 (permalink)  
Old 05-22-06, 00:45
DBA_Rahul DBA_Rahul is offline
Registered User
 
Join Date: May 2004
Location: bangalore
Posts: 270
Hi csamuels,
Sorry dude.... but wat ya gave me the reply was not in the line of the question...... Please look into ur reply.



Thanks,
Rahul Jha
__________________
Reply With Quote
  #4 (permalink)  
Old 05-23-06, 18:43
wayneph wayneph is offline
Registered User
 
Join Date: Aug 2005
Location: D/FW, Texas, USA
Posts: 78
Since the only method of handling errors in Classic ASP is by using 'On Error Resume Next' there really isn't a way to add it with out going to each page.

If you already have header and footer files that are being included on each page you could add the code in there. The down side is that without checking for the error on the line after it occurs, you could end up getting the second or third error on the page, that would have never occured if the true error (which you'll never see) hadn't occured.
__________________
--wayne
SELECT * FROM Users WHERE Clue>0
0 rows returned
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On