473,394 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1341
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Alleyman | last post by:
Hi there, Is there a simple way to prevent error messages (falsely connecting to database etc.) being diplayed? My own build in messages are enough... thanks, Chris
5
by: Steve | last post by:
Hi; I went to the microsoft site to try to find a guide to the error messages that the jdbc drivers give ( for sqlserver 2000 ). I had no luck. Does anyone know if there is such a guide? ...
3
by: Shabam | last post by:
I know that dotnet allows for form field validation. However I'm looking to customize the error message display and am wondering if it's possible to do what I need. Example: Suppose in a...
11
by: Markus Dehmann | last post by:
I have started with C++ a few months ago. The language itself is nice, but what I really don't like are the error messages that I get from g++. g++ error messages are often just not helpful. ...
1
by: Coffee guy | last post by:
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...
0
by: pgaudreau | last post by:
Greetings. ASP.NET 2.0 / VB / IIS 6 / SQL Server 2005 I have customized the Create User Wizard a bit, and would like to know how I go about displaying error messages when they occur. It seemed...
1
by: MC | last post by:
I seem to recall that under Windows XP, when a .NET executable hit an unhandled exception, the exception message would be displays on the screen. Under Vista, all we get is "...has stopped...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.