Re: Displaying error messages

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Sijin Joseph (sijinNOSPAMdotnet_at_hotmail.com)
Date: 09/05/04


Date: Sun, 05 Sep 2004 11:30:14 +0530

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 :-)



Relevant Pages

  • Re: Cannot display throw new exception error message
    ... you can't see your error message, because your code doesn't reach the ... line where you throw your Exception. ... To display your custom message, your openFilemethod should look like: ... If you would have had a look at the FileReader API documentation, ...
    (comp.lang.java.programmer)
  • Should throw exception when validating data?
    ... i'm wondering if it is preferred practice to throw exception in this ... should try to never throw an exception in circumstances where you can do ... with the error message so that it can then be accessed in the UI to display ...
    (microsoft.public.dotnet.languages.csharp)
  • Displaying error messages
    ... I'm new to .NET and web development so please forgive. ... to display an error message, ... I want to inform the user that I just caught this exception. ...
    (microsoft.public.dotnet.general)
  • Updating Access 2000 mdb with asp.net vb Microsoft.Jet.OLEDB.4.0
    ... and produces no error message either. ... display look fine. ... WHERE chain=@chain", objConn) ... Catch ex As Exception ...
    (microsoft.public.data.oledb)
  • RE: Biztalk 2006 Tutorial 3
    ... There are some known issues w/ the tutorials. ... Below is the error message that appears in the event ... Exception type: ServiceCreationException ... md, Objectargs, Object server, Int32 methodPtr, Boolean fExecuteInContext, ...
    (microsoft.public.biztalk.general)