Articles
XmlTextReader
The XmlTextReader Constructor
8/10/2005
Covers several ways to initialize the XmlTextReader object for use with xml data.
Reading an Xml Stream with XmlTextReader
8/10/2005
Shows how to read an RSS xml feed as a stream using System.Xml.XmlTextReader
HtmlTextWriter
Using HtmlTextWriter to Create Controls that Output Valid Html
4/15/2005
Demonstrates how to use the HtmlTextWriter class to write a simple user control that outputs html based on DTD.
Formatting Html Output with HtmlTextWriter
5/17/2005
This article demonstrates how to use the HtmlTextWriter class to write a simple user control that outputs formatted html.
User Controls in ASP.NET without Compiling
Beginning User Controls
11/30/2004
Create two very simple user controls and use them to create a page template.
Download the example code for this article. BeginningUserControlsCode.zip
Adding a Navigation Bar User Control
12/05/2004
Create a navigation bar user control and add it to our page template.
Download the example code for this article. NavBarControlsCode.zip
Creating Some Style
12/13/2004
A look at some different ways that you can apply styles to your user controls using the .Net Framework.
Download the example code for this article. CreatingStyleCode.zip
Programmatically Working with User Controls
1/6/2005
Demonstrates how you can work with your custom user controls programmatically.
Download the example code for this article. WorkingWithControls.zip
Other Articles
Error Handling and Technical Documentation
1/6/2005
Discusses error handling in technical documentation code examples and the trade-offs between readability and sound coding practices.
Requirements and Setup
All samples were written on a machine running Windows XP Pro with IIS and the .Net Framework 1.1.
To run the examples provided in these articles it is recommended you have a system running the latest release of the .Net Framework and IIS.
Create a directory under your default web root where you will create all of the required files. For the documentation purposes we'll call this directory "test". An example of the path to our new directory would be c:\inetpub\wwwroot\test. It is not necessary to make any changes to this directory in IIS manager. Since it resides in the web root it is automatically considered a v-root of your default website. Do not make this directory a web application.
