Prev | Current Page 92 | Next

Rob Cameron and Dale Michalk

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

Instead of the header and footer,
we have the simple user control shown in Figure 2-1. Listing 2-1 shows the code for the
SimpleUserControl user control.
Listing 2-1. The SimpleUserControl User Control .ascx File
<%@ Control Language="C#" AutoEventWireup="true"
CodeBehind="SimpleUserControl.ascx.cs"
Inherits="ControlsBook2Web.Ch02.SimpleUserControl" %>
AutoGenerateColumns="False" CellPadding="4" DataKeyNames="ID"
DataSourceID="ApressBooksds"
EmptyDataText="There are no data records to display." Font-Names="Arial"
Font-Size="X-Small"
ForeColor="#333333" GridLines="None">

SortExpression="ID"
InsertVisible="False" />

"Author" />

SortExpression="
Description" />
SortExpression="DatePublished" />
SortExpression="NumPages" />










DataFile="~/App_Data/ApressBooks.


Pages:
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104