| A Grouping repeater controls for ASP.Net |
| The Code Project |
| This custom repeater control can be used to add group headers to your output. |
|
| A Templated databound Repeater control with per-row template selection |
| The Code Project |
| This control allows you to select a template for each different row in your Repeater, based on the content of that row. |
|
| ASP.NET Developer's Cookbook Chapter 3: Custom Controls |
| The Code Project |
| The most common techniques in building custom controls in ASP.NET. |
|
| Building a DataNavigator Control |
| MSDN |
| The list of ASP.NET rich data-bound controls is a long one, but it's not all-encompassing. You won't find any Microsoft® .NET counterpart for the Data control—a scrollable and updateable binding context that data-bound controls could rely on to refresh their user interface. The original Data control allowed for simple movements—first, next, previous, and last. It worked on top of a Recordset object and exposed the UpdateRecord method to save changes according to the capabilities of the currently selected type of cursor. While not the perfect programming tool, the Data control was especially good at building simple user interfaces for tables used internally for administrative purposes. |
|
| Building a simple templated control |
| The Code Project |
| A simple and straight forward example of building an ASP.NET templated control |
|
| Building Editing Capabilities into the SqlDataNavigator ASP.NET Control |
| MSDN |
| In last month's column I began an ambitious project: building a SQL Server™-specific DataNavigator control that supports two-way data binding. The control I'll present in this column, SqlDataNavigator, is just an extension of last month's DataNavigator. The SqlDataNavigator ASP.NET control described here is meant to be the Microsoft® .NET counterpart of the Data control—an old Visual Basic® control that caused its share of headaches. The control moves from one record to the next according to a given order and displays each data row using a dynamically generated template. Last month I focused on the DataNavigator control's architecture and tackled some programming issues related to connectivity and data display. This month, I'll add editing capabilities to the control, making SqlDataNavigator actually support the "writing" channel of .NET data binding. |
|
| Building Templated Custom ASP.NET Server Controls |
| MSDN |
| Learn how to create ASP.NET Server controls that enable users to customize the look and feel. |
|
| Creating DataGrid Templated Columns Dynamically |
| .netBips |
| Few months back I wrote article on how to create DataGrid programatically. The article explained how to created a DataGrid with bound columns on the fly. Many readers asked whether we can do similar thing with templated columns. This two part article explains just that. There are actually two ways to create DataGrid templated columns dynamically - using LoadTemplate method and implementing ITemplate interface. In Part - I, we will discuss how to use the first method i.e. using LoadTemplate. |
|
| DataCalendar |
| The Code Project |
| A data-driven, templated sub-class of the ASP.NET Calendar control |
|
| How To Dynamically Add and Format DataGrid Column |
| DotNetJunkies |
| In this article, Sun explains how to dynamically create and format DataGrid columns by setting the properties and using the template class. |
|
| Implementing Dynamic ItemTemplates |
| http://tripleasp.net/ |
| Template controls allow a developer to set up a complicated user interface in almost no time at all. ASP.Net has a couple of controls that use templates (the Datagrid is a prime example). While this works great, and often used templates can be saved as .ascx files to enhance reusability, there will likely be times where the layout of your control isn't known a head of time and you need to dynamically add a template based on different events. |
|
| Template Rounded Corner Control |
| The Code Project |
| Enhance Rounded Corner Control to support template |
|
| Understanding Templates in ASP.NET |
| MSDN |
| Web server controls can be customized by setting properties or by using CSS styles. Some allow you to customize their look through ASP.NET templates. An ASP.NET template is a mix of HTML elements and ASP.NET controls that make up the layout for a particular area of the control. Templates are not the same as styles. Styles primarily refer to CSS stylesheets and affect graphical properties such as colors, font, border style, cell spacing, and so forth. With styles, the control's layout remains unchanged in its structure but can be modified in its appearance. In contrast, templates involve deeper changes that modify some portions of a control's user interface. |
|