Prev | Current Page 135 | Next

Rob Cameron and Dale Michalk

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

Ch02" Assembly="ControlsBook2Lib" %>

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




Enable3D="True">I look 3D!




Enable3D="false">I don't!



Listing 2-20. The TextBox3dDemo Code-Behind Class File
using System;
namespace ControlsBook2Web.Ch02
{
public partial class TextBox3DDemo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
}
Having a rich server control as the base class is a powerful means of packaging functionality
that takes advantage of browser DHTML capabilities to generate pleasing output, as this
example demonstrates.
In the preceding examples, we did not provide persistent state for control properties to
keep the example code simple.


Pages:
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147