Developing Microsoft Asp.Net Server Controls and Components

Developing Microsoft Asp.Net Server Controls and Components

  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版
  • 言語 ENG,ENG
  • 商品コード 9780735615823
  • DDC分類 005.276

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 8 (2)
ASP.NET Application
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 38 (1)
Parameters
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 64 (3)
SiteFooter Examples
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 73 (4)
Cruise Selector Example
Relative URLs in User Controls 77 (2)
Programmatically Instantiating a User 79 (1)
Control
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 93 (6)
Control Example
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 118 (4)
Store---The ViewStateDemoLabel Example
More About View State 122 (3)
Declarative Persistence of Simple Properties 125 (2)
Declarative Syntax for Enumeration 126 (1)
Properties
Properties Inherited from Control and 127 (3)
WebControl
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 132 (9)
Example
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 145 (3)
Example
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 151 (4)
Example
Exercising HtmlTextWriter---The Login Ul 155 (12)
Example
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 186 (5)
Event---The IPostBackEventHandler Interface
Implementing IPostBackEventHandler---The 187 (4)
SimpleButton Example
Optimizing Event Implementation 191 (3)
Generating Client-Side Script for Postback 194 (9)
Rendering Multiple Elements That Use 199 (4)
Client Script for Postback---The
NavButtons Example
IPostBackDataHandler and Postback Data 203 (4)
Processing Postback Data---The 204 (3)
SimpleTextBox Example
Putting It Together---The Login Example 207 (5)
Exposing Other Semeantic Events---The 212 (5)
HitTracker Example
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 245 (4)
ViewState Dictionary
How a Page Serializes and Restores Its 245 (1)
View State
The IStateManager Interface 246 (1)
The ViewState Property and Default State 247 (2)
Management
Implementing IStateManager in a Custom Type 249 (6)
Collection Properties---The ImageMap Example 255 (16)
Implementing State Management in a 264 (7)
Collection Type---The HotSportCollection
Example
Expando Attributes---The IAttributeAccessor 271 (4)
Interface
Styles in Control 275 (18)
Styles Overview 275 (4)
Overriding Style Properties---The 279 (4)
Spreadsheet Example
Implementing a Custom Typed Style---The 283 (10)
MyPanelStyle Example
Composite Controls 293 (46)
Composite Controls---Key Concepts 294 (2)
Implementing a Composite Control---The 296 (12)
CompositeLogin Example
APIs Related to Composite Controls 308 (2)
View State and Child Controls 310 (1)
Event Bubbling 311 (2)
Styles in Composite Controls---The 313 (7)
StyledCompositeLogin Example
Templated Controls Overview 320 (1)
Implementing a Templated Control---The 321 (10)
ContractInfo Example
Control Parsing and Control Builders 331 (8)
Client-Side Behavior 339 (20)
Browser Capabilities and Client-Side 340 (1)
Behavior
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, 360 (2)
BaseValidator, and CustomerValidator
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 365 (10)
Example
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 384 (2)
CompositeControlDesigner Example
Templated ControlDesigners---The 386 (8)
ContactInforDesigner Example
Read-Write Control Designers---The 394 (5)
ScrollablePanelDesigner Example
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 415 (3)
Editing
Debugging Design-Time Code 418 (3)
Data-Bound Controls 421 (30)
Data Binding Overview 422 (2)
BindableAttribute and the DataBindings 424 (1)
Property
Implementing a Data-Bound Control 424 (18)
The DataSource Property and Related 433 (1)
Members
Creating the Control Hierarchy---DataBind 434 (2)
and CreateChildControls
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 490 (10)
StockWebService Example
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 500 (19)
StockGrid Example
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 525 (7)
Example
Dynamic Images---The ImageLabelHandler 532 (16)
Example
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 608 (25)
Implementation
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