Health Monitoring in ASP.NET 2.0: Notifications via Email
The Health Monitoring system in ASP.NET 2.0 is designed to monitor the
health of a running ASP.NET application in a production environment. It works by recording event information to a specified
log source. The .NET 2.0 Framework includes a variety of built-in events that can be used by the Health
Monitoring system, including events for monitoring application re-starts and stops, unhandled exceptions, and failed
authentication attempts, among others. The .NET Framework also include support for logging these events to the Windows event
log, to a Microsoft SQL Server database, via WMI,
in an email, and to the ASP.NET page tracing system.
In this article we will continue our exploration of the built-in events and log sources. In particular, we will look at the
WebFailureAuditEvent event, which is raised when there is a security audit failure. We will also look at the SimpleMailWebEventProvider
event provider, which, as its name implies, sends event information via email.
Using Web Standards to Simply Web Control Development
I've been an advocate of web standards for some time now and I'm frequently surprised to find new ways to simplify seemingly unrelated tasks. This article discusses how web standards can be used in ASP.NET control development to simplify some development tasks, build lighter weight and accessible controls and increase layout flexibility.
A Typed Repeater in ASP.NET
Hacking ASP.NET to build a Repeater with generics support
Health Monitoring in ASP.NET 2.0: The Basics
ASP.NET version 1.x did not include any built-in logging and notification system and therefore required a little bit of
code or configuration effort from the developer. ASP.NET 2.0, however, provides built-in Health Monitoring facilities that make it a snap to configure a website to record events to the event log, a database, via WMI, in an email, or
to the ASP.NET page tracing system. Moreover, the Health Monitoring system was created using the provider
design pattern, making it possible to implement our own logging logic.
This is the start of a series that explores the ASP.NET 2.0 Health Monitoring system. In this article we will examine the basics
of Health Monitoring and see how to setup Health Monitoring to log events to a SQL Server database..
Identity: Secure Your ASP.NET Apps And WCF Services With Windows CardSpace
Windows CardSpace replaces traditional username and password authentication with a tool that helps users better manage their digital identities and helps shield users from various forms of identity attack such as phishing. Michèle Leroux Bustamante explains how to integrate Windows CardSpace with your ASP.NET applications and Windows Communication Foundation services.
Enforce Web Standards For Better Accessibility
Besides complying with the W3C standards for XHTML, cascading style sheets (CSS), XML, and so forth, Web applications should be search-engine friendly, accessible, have human-readable URLs, and employ other accepted practices that make them easier to find and use. Web standards also require careful attention to the structure of the code behind the sites, making it easier to maintain in the future. In this article I'll explain why everyone, especially those writing server controls, should adhere to Web standards.
Subclassing and Overriding ASP.NET Pages. Part 1
There are a number of techniques that allow you to modify an ASP.NET page without touching its source code. You don't need a button's source code to create a derived class, and you don't need an ASP.NET page's source code to modify its behavior. In Windows programming, you typically hook up low level messages and subclass a window. In ASP.NET, you can try to hook up page events to override both the page behavior and output..
Extreme ASP.NET: Web Deployment Projects
When ASP was first released, Web programming was more difficult because you needed IIS to serve your ASP pages. Later, ASP.NET 2.0 and Visual Studio 2005 made everything easier by introducing the Web site model of development. Instead of creating a new project inside Visual Studio, the Web site model lets you point to a directory and start writing pages and code. Furthermore, you can quickly test your site with the built-in ASP.NET Development Server, which hosts ASP.NET in a local process and obviates the need to install IIS to begin developing. The beauty of the Web site model is that you can develop your Web application without thinking about packaging and deployment. Need another class? Add a .cs file to the App_Code directory and start writing. Want to store localizable strings in a resource file? Add a .resx file to the App_GlobalResources directory and type in the strings. Everything just works; you don't have to think about the compilation and deployment aspect at all..
Set up IIS to work with server and client certificates and HTTPS: test your client or web service code in minutes (without using Win 2003 or Certficate Server).
Have you written a web service that will be deployed over HTTPS and you want to test it on your own box? Have you written a client that needs to call a web service using a client certificate, and want to test it without involving half your company? Here's how to do it!
GridThemes
GridThemes is a collection of classes for ASP.NET 2.0 which allows for the application of conditional formatting to one or more GridView controls using declarative constructs. Typically, a developer would trap a grid's RowDataBound event to apply conditional formatting. With GridThemes however, a page designer may set a single property to change this grid. The framework is useful when conditional cell-by-cell formatting is necessary, or to apply such formatting consistently throughout a project. It is also useful when AutoGenerateColumns is applied on a GridView and column formatting is otherwise unavailable.