Prev | Current Page 574 | Next

Rob Cameron and Dale Michalk

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

The demonstration web form for the two server controls
is CustomerInfo.aspx. The source code is shown in Listings 10-3 and 10-4.
452 CHAPTER 10 ?–  OTHER SERVER CONTROLS
Listing 10-3. The Customer Information Web Form .aspx Page File
<%@ Page Language="C#"
MasterPageFile="~/MasterPage/ControlsBook2MasterPage.Master"
AutoEventWireup="true" CodeBehind="CustomerInfo.aspx.cs"
Inherits="ControlsBook2Web.Ch10.CustomerInfo"
Title="Customer Info Demo Web Form" %>
<%@ Register assembly="ControlsBook2Lib" namespace="ControlsBook2Lib.Ch10"
tagprefix="apress" %>









ConnectionString = "<%$ ConnectionStrings:NorthWindDB %>"
AllowCustomerEditing="True" />



ConnectionString = "<%$ ConnectionStrings:NorthWindDB %>" />




Listing 10-4. The Customer Information Web Form Code-Behind Class File
using System;
namespace ControlsBook2Web.


Pages:
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586