469,572 Members | 1,629 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,572 developers. It's quick & easy.

Displaying error messages

I'm new to .NET and web development so please forgive. What is the best way
to display an error message, particularly during development. For example I
handle an exception, let's say it's an oledb error thrown because a file does
not exist. I want to inform the user (me) that I just caught this exception.

What's the best way to do this? Do I add scripting to write something to
the browser? How to do this in C#?

Or do I create a blank webform and put the text on it? Seems heavy-handed.

Or how can I dynamically create a popup html page that says what it says
then can be dismissed?

Easy stuff I know but I'm not finding it in the docs, presumeably b/c I
don't know what keywords to search for yet (MessageBox() doesn't do it :-)
Jul 21 '05 #1
1 1213
Check this out
http://www.jasonbock.net/errordialog.html

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

Coffee guy wrote:
I'm new to .NET and web development so please forgive. What is the best way
to display an error message, particularly during development. For example I
handle an exception, let's say it's an oledb error thrown because a file does
not exist. I want to inform the user (me) that I just caught this exception.

What's the best way to do this? Do I add scripting to write something to
the browser? How to do this in C#?

Or do I create a blank webform and put the text on it? Seems heavy-handed.

Or how can I dynamically create a popup html page that says what it says
then can be dismissed?

Easy stuff I know but I'm not finding it in the docs, presumeably b/c I
don't know what keywords to search for yet (MessageBox() doesn't do it :-)

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by John Alleyman | last post: by
3 posts views Thread by Shabam | last post: by
11 posts views Thread by Markus Dehmann | last post: by
1 post views Thread by Coffee guy | last post: by
reply views Thread by pgaudreau | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.