did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780735615823

Developing Microsoft ASP.NET Server Controls and Components

by
  • ISBN13:

    9780735615823

  • ISBN10:

    0735615829

  • Format: Paperback
  • Copyright: 2002-08-28
  • Publisher: Microsoft Press
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $59.99

Summary

Web Formsthe Page and Control Framework at the heart of ASP.NETmakes it easier to develop dynamic Web applications. But you can go beyond the controls that ship with ASP.NETand power up your Web sites and applicationsby creating your own server controls. You can also develop and distribute your own controls for commercial use. This comprehensive guide, direct from key insiders who really know the technology, combines conceptual and architectural details with practical, how-to information and real-world code samples to show exactly how to create custom, reusable, professional-quality server controls with rich design-time functionality. It also provides essential information about configuration and the HTTP runtime, packaging, deployment, debugging, and developing controls that incorporate XML Web services, plus other vital topics. And it introduces the ASP.NET Web Matrix tool for creating Web applications and for using server controls. Topics covered include:OVERVIEW ASP.NET page programming Component programmingSERVER CONTROLS User controls Implementing properties View state management Rendering Control life cycle Events and Postback Styles Composite, validator, and data-bound controls Client-side behavior Design-time functionality Localization, licensing, and deploymentSERVER COMPONENTS XML Web services HTTP handlersSERVER CONTROL CASE STUDIES Templated data-bound controls DHTML-based server controls"[This book] is a must-have for all serious ASP.NET component developers."Scott Guthrie, Product Unit Manager, Microsoft ASP.NET Product Team

Author Biography

The authors are in a unique position to explain ASP.NET server control technology. Nikhil Kothari is a developer on the ASP.NET team and has developed many of the complex controls that ship with the .NET Framework SDK. Vandana Datye is a freelance programmer/writer who has authored content about developing server controls in the .NET Framework SDK documentation.

Table of Contents

Foreword xvii
Acknowledgments xix
Introduction xxi
Part I Overview
ASP.NET Overview
3(10)
The .NET Framework
3(3)
The Common Language Runtime
4(1)
The .NET Framework Class Library
5(1)
A Quick Tour of ASP.NET
6(2)
HTTP Runtime---Request Processing in an ASP.NET Application
8(2)
Extending ASP.NET
10(3)
Page Programming Model
13(16)
A Sample Page
14(1)
Server Controls
15(6)
ASP.NET Server Control Hierarchy
18(1)
ASP.NET Web Controls
18(1)
Why Write Server Controls?
19(2)
From Text to Controls
21(1)
Code Model
22(1)
Page Execution Model
23(3)
ASP.NET Pages in a Visual Designer
26(3)
Component Programming Overview
29(30)
Managed Component Overview
30(1)
Properties
31(6)
The Property Construct
32(4)
Naming Guidelines for Properties
36(1)
Advantages of Properties
36(1)
Methods
37(2)
Implementing Methods Instead of Properties
37(1)
Naming Guidelines for Methods and Method Parameters
38(1)
Events
39(12)
Delegates
39(3)
Event Delegates
42(2)
Raising an Event
44(2)
Event Sample
46(5)
Metadata Attributes
51(2)
Applying Attributes
52(1)
Designable Components
53(6)
Controls
54(5)
Part II Server Controls --- First Steps
User Controls: From Page to Control
59(28)
Converting a Page to a User Control
60(4)
Accessing a User Control from a Page
62(2)
Reusable User Controls: The SiteHeader and SiteFooter Examples
64(3)
The User Control Model
67(6)
User Controls in Visual Studio .NET
68(5)
Deploying a User Control
73(1)
An Application-Specific User Control: The Cruise Selector Example
73(4)
Relative URLs in User Controls
77(2)
Programmatically Instantiating a User Control
79(1)
Caching a User Control
80(7)
VaryByControl Example
83(2)
How User Control Coaching Works
85(2)
Developing a Simple Custom Control
87(22)
Server Control Overview
88(1)
A Trivial Server Control Example
89(1)
Compiling and Deploying a Server Control
90(3)
Using a Custom Control on a Page
92(1)
Exposing a Property: The PrimeGenerator Control Example
93(6)
Deriving from WebControl
96(1)
Test Page for the PrimeGenerator Control
97(2)
Choosing the Base Class for Your Control
99(1)
Applying Design-Time Attributes
100(2)
Applying TagPrefixAttribute
101(1)
Custom Controls in Visual Studio .NET
102(4)
Adding a Custom Control to the Toolbox
102(1)
Using Custom Controls from the Toolbox
103(2)
Customizing the Toolbox Icon
105(1)
Debugging a Server Control
106(3)
Custom Controls vs. User Controls
109(8)
Deployment
109(1)
Authoring
110(1)
Content and Layout
111(1)
Design-Time Behavior
112(1)
Performance
112(5)
Part III Server Controls---Nuts and Bolts
Simple Properties and View State
117(24)
View State and State Management
118(7)
Using ViewState as the Property Store---The ViewStateDemoLabel Example
118(4)
More About View State
122(3)
Declarative Persistence of Simple Properties
125(2)
Declarative Syntax for Enumeration Properties
126(1)
Properties Inherited from Control and WebControl
127(3)
Control Properties
127(1)
WebControl Properties
128(2)
Design-Time Attributes for Properties
130(2)
Overriding an Attribute
132(1)
Putting It Together---The Page Tracker Example
132(9)
Page That Uses the Page Tracker Control
138(3)
Rendering
141(32)
Base Classes and Rendering
142(1)
Rendering Methods of the Control Class
143(2)
Page Rendering
144(1)
Overriding Render---The Meta Tag Control Example
145(3)
HtmlTextWriter and Related Enumerations
148(1)
HtmlTextWriter Tag Enumeration
149(1)
HtmlTextWriter Attribute Enumeration
149(1)
HtmlTextWriterStyle Enumeration
149(1)
Rendering Methods of WebControl
149(2)
Rendering a Web Control---The HoverLabel Example
151(4)
Exercising HtmlTextWriter---The Login Ul Example
155(12)
Downlevel Rendering
167(6)
Control Life Cycle, Events, and Postback
173(44)
Control Life Cycle
174(9)
Events in Server Controls
183(2)
Declarative Syntax for Event Wiring
184(1)
Postback Architecture
185(1)
Mapping a Postback Event to a Server Event---The IPostBackEventHandler Interface
186(5)
Implementing IPostBackEventHandler---The SimpleButton Example
187(4)
Optimizing Event Implementation
191(3)
Generating Client-Side Script for Postback
194(9)
Rendering Multiple Elements That Use Client Script for Postback---The NavButtons Example
199(4)
IPostBackDataHandler and Postback Data
203(4)
Processing Postback Data---The SimpleTextBox Example
204(3)
Putting It Together---The Login Example
207(5)
Exposing Other Semeantic Events---The HitTracker Example
212(5)
Complex Properties and State Management
217(58)
Subproperties
218(4)
Subproperties Persisted on a Control's Tag
219(1)
Inner Property Persistence
220(2)
Properties and Type Converters
222(23)
Implementing a Type Converter
223(13)
Putting It Together---The MapDemo Example
236(9)
State Management, IStateManager, and the ViewState Dictionary
245(4)
How a Page Serializes and Restores Its View State
245(1)
The IStateManager Interface
246(1)
The ViewState Property and Default State Management
247(2)
Implementing IStateManager in a Custom Type
249(6)
Collection Properties---The ImageMap Example
255(16)
Implementing State Management in a Collection Type---The HotSportCollection Example
264(7)
Expando Attributes---The IAttributeAccessor Interface
271(4)
Styles in Control
275(18)
Styles Overview
275(4)
Overriding Style Properties---The Spreadsheet Example
279(4)
Implementing a Custom Typed Style---The MyPanelStyle Example
283(10)
Composite Controls
293(46)
Composite Controls---Key Concepts
294(2)
Implementing a Composite Control---The CompositeLogin Example
296(12)
APIs Related to Composite Controls
308(2)
View State and Child Controls
310(1)
Event Bubbling
311(2)
Styles in Composite Controls---The StyledCompositeLogin Example
313(7)
Templated Controls Overview
320(1)
Implementing a Templated Control---The ContractInfo Example
321(10)
Control Parsing and Control Builders
331(8)
Client-Side Behavior
339(20)
Browser Capabilities and Client-Side Behavior
340(1)
Client Script--Related API
341(1)
Using Client Script and DHTML
342(1)
Deploying Client Files
343(2)
Putting It Together---The HtmlEditor Example
345(14)
Validator Controls
359(16)
Validation Architecture---IValidator, BaseValidator, and CustomerValidator
360(2)
The Validation Framework
362(3)
Validator Controls Provided by ASP.NET
362(1)
Using Validation in a Page
362(1)
How the Page Performs Validation
363(1)
Client-Side Validation
364(1)
The Validation Summary Control
364(1)
Validating Text Entry---The StringValidator Example
365(10)
Design-Time Functionality
375(46)
.NET Framework Design-Time Architecture
376(4)
Type Converters
380(1)
TypeConverterATtribute
381(1)
Designers
381(20)
Composite Control Designers---The CompositeControlDesigner Example
384(2)
Templated ControlDesigners---The ContactInforDesigner Example
386(8)
Read-Write Control Designers---The ScrollablePanelDesigner Example
394(5)
Designer Verbs
399(1)
DesignerAttribute
399(2)
UI Type Editors
401(7)
String Editor Example
401(5)
Collection Editor Examples
406(1)
EditorAttribute
407(1)
Component Editors
408(10)
The MyLabelComponentEditor Example
408(7)
Designer Verb That Initiates Component Editing
415(3)
Debugging Design-Time Code
418(3)
Data-Bound Controls
421(30)
Data Binding Overview
422(2)
BindableAttribute and the DataBindings Property
424(1)
Implementing a Data-Bound Control
424(18)
The DataSource Property and Related Members
433(1)
Creating the Control Hierarchy---DataBind and CreateChildControls
434(2)
Styles and Rendering
436(6)
Implementing a Data-Bound Control Designer
442(9)
Localization, Licensing, and Other Miscellany
451(38)
Localization
451(12)
Using Resources in Controls
452(4)
Embedding and Accessing Resources
456(4)
Localizing Metadata Attributes
460(3)
Licensing
463(14)
ServerLicenseProvider
467(6)
ExpiringLicenseProvider
473(2)
EncryptedLicenseProvider
475(2)
Configurable Properties
477(6)
Deployment
483(6)
Part IV Server Components
XML Web Services
489(30)
XML Web Services Overview
489(1)
Developing an XML Web Service---The StockWebService Example
490(10)
Implementing the Web Service
491(6)
Deploying the Web Service
497(2)
Developing Web Service Client Proxies
499(1)
XML Web Service-Based Server Controls---The StockGrid Example
500(19)
Implementing the Server Control
502(13)
Implementing the Control Designer
515(4)
HTTP Handlers
519(34)
HTTP Handler Overview
519(3)
The IHttpHandler Interface
521(1)
The IHttpHandlerFactory Interface
522(1)
The ``Hello, World'' HTTP Handler Example
522(3)
Handling a New Extension---The XmlHandler Example
525(7)
Dynamic Images---The ImageLabelHandler Example
532(16)
The ImageLabelControl and Designer
538(10)
HTTP Handlers and Session State
548(5)
Part V Server Control Case Studies
Data-Bound Templated Controls
553(50)
The ListView Control
554(3)
ListView Specification
557(1)
ListView Implementation
558(45)
Data-Bound Controls
559(9)
Templates
568(3)
Styles and State Management
571(4)
Rendering
575(5)
Events
580(5)
Client Script Functionality
585(2)
Design-Time Attributes
587(3)
Designer Implementation
590(13)
DHTML-Based Server Controls
603(58)
The DatePicker Control
604(3)
DatePicker Specification
607(1)
DatePicker and DatePickerDesigner Implementation
608(25)
Composite Control
608(2)
Delegated Properties
610(2)
Styles and State Management
612(3)
Client Script Functionality
615(5)
Rendering
620(2)
Events
622(2)
Validation
624(1)
Design-Time Attributes
625(2)
Designer Implementation
627(6)
Part VI Appendixes
A Metadata Attributes
633(10)
B Object Model for Common Classes
643(10)
C Microsoft ASP. NET Web Matrix
653(8)
Index 661

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program