>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.