navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Counting / Identifying Errors

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Counting / Identifying Errors
Page: [1]
 
SerenityNet

 

Posts: 1372
Joined: 6/12/2001
From: Allen, TX, USA
Status: offline

 
Counting / Identifying Errors - 2/4/2005 5:17:05   
As an example, I use the following to return active session variables.
<%
 on error resume next
 for x = 0 to session.Contents.Count-1
    Response.Write "<nobr><pre><b>"
    Response.write session.Contents.key(x) & " - </b>"
    Response.write session.Contents.item(x) &  "</nobr><p><br>"
 next
%>


I've found, for some reason I can't figure out, that I sometimes get an error.
Microsoft VBScript runtime error '800a01b6' 
Object doesn't support this property or method 
/variables.asp, line 91

Where line 91 is
Response.Write "<tr><td>" & strName & "</td><td>" & Session.Contents(strName) & "</td></tr>"


So two questions:

1)  When an error is encountered in the loop, how can I catch it and report it? Something like response.write "error"

2)  Any idea on what the error could be?

Thanks,
Andrew


_____________________________

</Chaos, panic, & disorder - my work here is done.>
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Counting / Identifying Errors
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts