-
George Mihaescu : August 21, 2007
Implementation technique / Windows Forms .Net (all versions)
This article presents my solution for customizing the print dialog in a .Net Windows Forms application using P/Invoke. Tested with .Net runtime 1.0, 1.1 and 2.0 on Win 2000, XP and Vista.
A .zip file is available for download with source code and the compiled binaries (.Net 2.0).
Viewed: 255 time(s)
-
George Mihaescu : June 24, 2007
Best practices
This article lists a set of common practices that I've discovered to be useful when building any ASP.Net application. This is a live document; as I find more common practices I will add them here, so check back often. All the practices described here come at no (or very little) cost during design and development but offer substantial benefits immediately and for future functionality enhancements and maintenance – in other words, they give you a lot of bang for very little buck.
Viewed: 379 time(s)
-
George Mihaescu : November 10, 2006
Best practices / Design pattern / ASP.Net
This article makes the case for having a type-safe implementation of a cache object in your ASP.Net application and describes two very simple design patterns to achieve this (and replace the untyped
collection offered by ASP.Net). The solutions presented also improve the thread-saftey of the application, while preserving performance and scalability.
Viewed: 401 time(s)
-
George Mihaescu : November 10, 2006
Best practices / Design pattern / ASP.Net
This article makes the case for having a type-safe implementation of a session object in your
ASP.Net application and describes two very simple design patterns to achieve this (and replace the untyped
collection offered by ASP.Net)
Viewed: 355 time(s)
-
George Mihaescu : January 25, 2007
Implementation technique / ASP.Net 2.0
This article explains how to set the button that responds to the user pressing Enter in an ASP.Net page.
Viewed: 1659 time(s)
-
George Mihaescu : February 15, 2007
Implementation technique / ASP.Net 2.0
This article describes the handling of in-process session and authentication timeouts in an ASP.Net application. Both types of timeouts are discussed in the same article because sometimes there may be a dependency between the two. The article also covers the in-process session timeout due to application domain recycling and the conditions that can cause the recycling. Applies to ASP.Net 2.0 (I have not tested the solutions listed here on ASP.Net 1.1 or 1.0).
Viewed: 653 time(s)
-
George Mihaescu : June 3, 2007
Quick tip
Provides a very quick and simple solution to the problem of debugging the ASP.Net application shutdown code.
Viewed: 341 time(s)
-
George Mihaescu : February 22, 2007
Implementation technique / ASP.Net 2.0 / JavaScript
This document presents a number of solutions for preventing the user to click the Submit button
in a form multiple times. with special emphasis (and examples in C#) on disabling the submit button while the
form is processing. The solution presented is simple, tried and tested, and works with client-side validation
and validation groups.
Viewed: 5640 time(s)
-
George Mihaescu : March 20, 2007
Implementation technique / ASP.Net 2.0 / JavaScript
This article describes the correct way a Web User Control should hook up its JavaScript handler(s)
to events in the page in which it lives - without disturbing the page (or other controls') own handlers of the same
event. Also known as "event handler chaining".
Viewed: 698 time(s)