SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 120 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"

Ch02.MenuCustomControlDemo"
Title="Menu Custom Control Demo" %>
<%@ Register TagPrefix="apress" Namespace="ControlsBook2Lib.Ch02"
Assembly="ControlsBook2Lib" %>

Width="14px">2  ID="ChapterTitleLabel" runat="server" Width="360px">
Encapsulating Functionality in ASP.NET



Menu Custom Control








The TableCustomControl Server Control via Rendering
We continue our task of duplicating the user control examples via custom controls by implementing
the dynamic HTML table. To make things more interesting, we demonstrate some of
the more advanced techniques of the HtmlTextWriter class, and we use control composition to
build the HTML table content. The rendering version is on deck first. Listing 2-14 shows the
TableCustomControl class file.
Listing 2-14. The TableCustomControl Class File
using System;
using System.Web;
using System.Web.UI;
namespace ControlsBook2Lib.


Pages:
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6