Discussion on Development in Several Different Flavours

ASP.Net Regular Expressions

Tagged:

The RegularExpressionValidator control is an often overlooked tool for validation. A lot of people look at the validation expression and are puzzled at how to proceed. Most settle on the RequiredFieldValidator and hand coded filtering in the submit action. I hope to compile here a list of common expressions needed for web form validation so that your job is easier.

Full Article

Error Handling Correction

Tagged:

Today I realized a huge problem with the global.asax error handling method that I provided in my last entry. The problem is that if you ever run into compilation errors you are left completely in the dark as to what page it came from. You just have the date, logged in user and ip address which isn’t very helpful.

Full Article

ASP.Net Error Logging

Tagged:

Like any good ASP.Net developer I have Scott Guthrie’s blog bookmarked in my GReader. Recently I was browsing through the archives and came across an entry about not using Debug=”True” in production applications. I have to admit that I am VERY guilty of this since pretty much all of my applications are production and are using Debug=”True”. The reason for this is simple, I am just me and I have to monitor/update all of these applications. I do as much testing as I can before sending it off to production and moving on to the next project but often once the users start working with it something bad happens. The ability to have the errors logged including the line number in the source code is invaluable when going back to an application to fix a bug after a length of time. However, in light of Scott’s points it stops now.

Full Article