Professional Asp.Net Server Controls-Building Custom Controls With C#

by
Format: Trade Paper
Pub. Date: 2002-02-01
Publisher(s): Springer-Verlag New York Inc
  • Free Shipping Icon

    This Item Qualifies for Free Shipping!*

    *Excludes marketplace orders.

List Price: $49.99

Rent Book

Select for Price
There was a problem. Please try again later.

New Book

We're Sorry
Sold Out

Used Book

We're Sorry
Sold Out

eBook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Server Controls are amongst the most powerful features to be added to ASP with the introduction of .NET. These server-side components can detect which browser version the client is using and generate the appropriate HTML and JavaScript code. The addition of Server Controls will replace the need for excessive coding by the ASP.NET developer, who will only have to write around 10% of the code that they would have needed with any other technology, including previous versions of ASP.-- A major improvement for ASP, Server Controls enable ASP.NET developers to write only 10% of the code that they would have needed with any other technology, including previous versions of ASP-- First title dedicated to this important topic, covering everything from making the most of ASP.NET's built-in controls, to creating custom server controls

Table of Contents

Introduction 1(2)
What does this Book Cover?
2(1)
Who is this Book For?
3(1)
What do you Need to Use this Book?
3(1)
Conventions
4(1)
Customer Support
5(4)
How to Download the Sample Code for the Book
5(1)
Errata
5(1)
E-mail Support
5(1)
p2p.wrox.com
6(3)
Introducing a Server Control Based Architecture
9(32)
ASP.NET Architecture
10(2)
What Are Server Controls?
12(3)
Types of Server Controls
13(2)
The Server Control Model
15(3)
The Life-Cycle of an ASP.NET Server Control
16(2)
When Should We Create Our Own Controls?
18(2)
User Controls Versus Server Controls
18(1)
Performance Considerations
19(1)
Creating a User Control
20(6)
Creating a Custom Server Control
26(6)
Using the Control in a Page
30(2)
Creating a Composite Control
32(7)
Summary
39(2)
Rendering Server Controls
41(34)
What is Rendering?
42(1)
HtmlTextWriter Class
42(1)
Server Control Creation
43(18)
Writing the Markup Content Directly
43(2)
Using the Utility Methods of the HtmlTextWriter Class
45(3)
Exposing Attributes as Properties
48(3)
Using the WebControl Class for Control Creation
51(5)
A Complex Control Creation Example
56(5)
Applications of the HtmlTextWriter Class
61(1)
Custom Mobile Controls
61(3)
Device Detection and Customized Rendering
62(2)
Validation Controls
64(2)
Limitations of Current Validation Techniques (Client-Side and Server-Side)
64(1)
Plumbing Provided by the Validation Controls
65(1)
Detecting Browser Capabilities
66(7)
HttpBrowserCapabilities Class
66(2)
Using ClientTarget Property to Affect the Output of a Server Control
68(5)
Summary
73(2)
Events and Event Handling
75(32)
Events in the .NET Framework
75(8)
Delegates
76(1)
Defining an Event
77(1)
Consuming an Event
77(1)
Event Sample
78(2)
Custom EventArgs and Delegates
80(2)
A Word About Naming
82(1)
Events in ASP.NET Controls
83(9)
Postback - Responding to Events and Data
83(9)
Inheritance and Containment
92(6)
Handling Events in Base Controls
92(1)
Events in Contained Controls
93(3)
Bubbling Events
96(2)
Shopping Cart Loader
98(7)
Summary
105(2)
Managing State
107(32)
Introduction to ViewState
108(22)
Mechanics of ViewState
109(3)
ViewState with Simple Controls
112(4)
ViewState with Composite Controls
116(8)
Control Class Properties and Methods Affecting ViewState
124(1)
ViewState and Performance
125(2)
ViewState and Security
127(3)
Accessing Application and Session State Variables
130(6)
Exposing Application State Variables to a Server Control
131(3)
Exposing Session State Variables to a Server Control
134(2)
Summary
136(3)
Templated Controls and Styles
139(52)
Templated Controls
140(34)
Creating Templated Controls
144(3)
Basic Templated Controls
147(9)
Advanced Templated Control
156(11)
Dynamic Templates
167(7)
Event Bubbling and More
174(1)
Styles
174(14)
Working with Styles
175(2)
Exposing Styles as Properties
177(4)
Exposing Style Elements as Top-Level Properties
181(3)
Creating a Custom Style Class
184(3)
Bits and Pieces
187(1)
Summary
188(3)
Controls that Work with Data
191(46)
Using Databound Controls
192(6)
A Word About Setup
194(4)
Databinding Essentials
198(8)
Creating a Simple Templated Databound Control
206(8)
Creating a Simple Databound Control
214(9)
Creating an Advanced Templated Databound Control
223(11)
Summary
234(3)
Custom Control Builders
237(36)
ControlBulider Overview
239(4)
A Simple Example using AllowWhitespaceLiterals
240(3)
ControlBuilder and Page Parser Interaction
243(11)
AppendLiteralString and More Parsing Detail
248(3)
HasBody
251(1)
CloseControl Method and ControlBuilder Properties
252(2)
Classes Derived from ControlBuilder
254(7)
Classes Overriding HtmlDecodeLiterals
255(3)
Classes Overriding AppendSubBuilder
258(3)
NeedsTagInnerText and SetTagInnerText
261(4)
GetChildControlType
265(3)
OnAppendToParentBuilder
268(1)
CreateBuilderFromType
269(1)
Summary
269(4)
Building Controls Using Visual Studio.NET
273(44)
What is the VS .NET IDE?
274(1)
Features of the VS .NET IDE
275(6)
Shared Development Environment
277(1)
Look and Feel
277(1)
Customizing the VS .NET IDE Using Template Policy
278(3)
Multi-Language Debugging
281(1)
Project Management
281(1)
Non-Language-Centric Features
281(10)
Solution Explorer
282(3)
Document Window
285(1)
Toolbox
285(2)
Dynamic Help and Search
287(1)
Task List
288(2)
Server Explorer
290(1)
Language-Centric Features
291(6)
IntelliSense
291(1)
Error Trapping
292(1)
Syntax Checking
293(1)
Debugging
293(1)
Watching
294(1)
Dynamic Help
294(1)
Resource Checking
294(3)
Server Control IDE Features Example
297(17)
News Desk Server Control
297(1)
Cross-Language Debugging
298(1)
Overview of Design
299(1)
Creating the News Web Site (VB .NET)
299(5)
XML News Feed Server Control (C# .NET) - XMLNewsFeed
304(4)
XML News Display Server Control (C# .NET) - XMLNewsDisplay
308(3)
Completing the Web XML News Web Site
311(1)
Debugging the XML News Web Site
312(1)
Reviewing the Code
313(1)
Summary
314(3)
Design-Time Support
317(54)
What Does Design-Time Support Mean?
318(2)
A Sample Control
318(2)
Overview of the Design-Time Architecture
320(49)
Basic
321(6)
Intermediate
327(18)
Advanced
345(24)
Summary
369(2)
Deploying and Licensing Server Controls
371(1)
Deploying Server Controls
371(1)
Working with the Global Assembly Cache
372(1)
Introducing Strong-Named Assemblies
373(4)
Adding a Control to the GAC
377(2)
Introduction to Licensing
379(1)
Understanding Licensing
379(2)
Licensing Models
381(1)
Using Licensing in .NET
381(10)
Summary
391

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.