Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Providing user with feedback
Message
De
24/03/2008 10:12:04
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01304871
Message ID:
01304872
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>This would be another newbie question - sorry for that in advance.
>
>I'm wondering what are the common ways of providing some sort of a user feedback after executing a server-side code?
>
>For instance, I execute some code that may generate an exception. I'm catching this exception and currently displaying it in the label on a form. However, I may prefer to show some sort of a messagebox instead. Or something else.
>
>So, would you please tell me what are the ways of providing a user's feedback in ASP.NET?

When there is an exception, if you mean an unexpected situation, thus an error, usually we go generic on this. As, when this happens, we have no idea on the impact so we log the error and forward the user to a generic page, a page that is not bound on the framework and that will simply tell the user that an unexpected situation happened and that he may click on a given link in that page to return to the main page of the site. We cannot even forward him to the main page because the main page is also inheriting from the framework. So, you need to avoid bouncing the user into an infinite loop. This is why we do it like that.

If this is within a Try/Catch exception, where you control what caused it, then, this means you are still within your application, thus you can offer the user anything you want such as a data entry form to collect data. But, in my experience, we never do that. Most of the data we need is already logged in the Error table.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform