473,385 Members | 1,730 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,385 software developers and data experts.

On 'crash-proofing' ASP.Net 2.0 code

This is related to an earlier post of mine. In a general sense, how does one
'crash-proof' 2.0 webpages, especially when dealing with legacy databases?
To be more specific, Visual Studio 2005 and ASP seem to be extremely
unforgiving of bad or null data, especially datetime fields and bad values
that are intended to set dropdown list indices.

Short of manually writing binding code, is there any way to deal with
problems like this?
Nov 26 '07 #1
3 990
It *sounds* like you are talking about "bad data" due to invalid user inputs.
ASP.NET sports a nice set of Validation Controls (including a Custom one that
you can write your own code in) to ensure that users cannot enter bad data.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"B. Chernick" wrote:
This is related to an earlier post of mine. In a general sense, how does one
'crash-proof' 2.0 webpages, especially when dealing with legacy databases?
To be more specific, Visual Studio 2005 and ASP seem to be extremely
unforgiving of bad or null data, especially datetime fields and bad values
that are intended to set dropdown list indices.

Short of manually writing binding code, is there any way to deal with
problems like this?
Nov 26 '07 #2
Actually no, user input I can deal with.

What I was thinking of was massive legacy databases full of questionable or
non-existent data integrity (and either too big to cleanup overnight or
politically off-limits), as well as wannabe DBAs going into tables directly
and modifying data, just to make my life even more interesting than it
already is.

It just seems vastly easier to handle this sort of thing in Winforms.

"Peter Bromberg [C# MVP]" wrote:
It *sounds* like you are talking about "bad data" due to invalid user inputs.
ASP.NET sports a nice set of Validation Controls (including a Custom one that
you can write your own code in) to ensure that users cannot enter bad data.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"B. Chernick" wrote:
This is related to an earlier post of mine. In a general sense, how does one
'crash-proof' 2.0 webpages, especially when dealing with legacy databases?
To be more specific, Visual Studio 2005 and ASP seem to be extremely
unforgiving of bad or null data, especially datetime fields and bad values
that are intended to set dropdown list indices.

Short of manually writing binding code, is there any way to deal with
problems like this?
Nov 26 '07 #3
The issues you just described are just as susceptible to Windows Forms apps
as they are to ASP.NET apps.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"B. Chernick" wrote:
Actually no, user input I can deal with.

What I was thinking of was massive legacy databases full of questionable or
non-existent data integrity (and either too big to cleanup overnight or
politically off-limits), as well as wannabe DBAs going into tables directly
and modifying data, just to make my life even more interesting than it
already is.

It just seems vastly easier to handle this sort of thing in Winforms.

"Peter Bromberg [C# MVP]" wrote:
It *sounds* like you are talking about "bad data" due to invalid user inputs.
ASP.NET sports a nice set of Validation Controls (including a Custom one that
you can write your own code in) to ensure that users cannot enter bad data.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"B. Chernick" wrote:
This is related to an earlier post of mine. In a general sense, how does one
'crash-proof' 2.0 webpages, especially when dealing with legacy databases?
To be more specific, Visual Studio 2005 and ASP seem to be extremely
unforgiving of bad or null data, especially datetime fields and bad values
that are intended to set dropdown list indices.
>
Short of manually writing binding code, is there any way to deal with
problems like this?
Nov 27 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
10
by: xixi | last post by:
i have db2 udb v8.1 on windows 64 bit 2003 server, after db2 server start , i found this in the db2diag.log, is this error? 2004-05-05-15.28.30.780000 Instance:DB2 Node:000...
8
by: Adam Louis | last post by:
I would like help resolving this problem. I'm a novice who's been hired to query a hospital database and extract useful information, available to me only in a dynamically generated, downloadable...
2
by: Daniel Etzold | last post by:
Why does this crash? #include <string.h> int main( int argc, char** argv ) { char b; memset( b, 0, 16000000 ); } gcc crash.cc -o crash
6
by: pradeep_TP | last post by:
Hi all, I am using IIS 5.0 and this question is regarding working of ASP.net worker process. I have only one web application right now on my web server. This means that only one AppDomain will...
0
by: Diffident | last post by:
Hello All, Does anyone know how to configure ADPlus to notify an admin or user if a crash occurs? I am using the following command to attach the debugger to workerprocess cscript adplus.vbs...
34
by: NewToCPP | last post by:
Hi, Why does a C/C++ programs crash? When there is access to a null pointer or some thing like that programs crash, but why do they crash? Thanks.
12
by: benjamin.krulewitch | last post by:
I'm debugging an issue with a C program that causes the computer to crash, and I'm attempting to log information immediately before the crash occurs. I us my BKprintLog function (see below) to...
4
by: eskimo | last post by:
Hello I have a situation, my program has a crash (SIGSEGV) for a reason that I don't know yet. I tried to analyze it using Valgrind but when I invoke the program with Valgrind, the crash no longer...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.