Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Try, Catch, Finally
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Try, Catch, Finally
Divers
Thread ID:
00830232
Message ID:
00830232
Vues:
73
Now that I understand more about variable scoping as it relates to Try {} Catch {} and Finally {} and revise my page to incorporate the error trapping code, I come across the following question.

In my case, it seems that I have to put a great deal of code into the Finally {} block. Almost all of the business logic (since the business mostly consists of painting the page from a couple of data readers). Is this a good programming? Or should I look for ways to make Finally block small and put most code in the after Finally block?

My concern is that I don't know if ASP.NET executes code in Finally just as fast as it would in any other part of the page?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform