ASP.NET AJAX Programming Tricks

Front Cover
Magma Interactive, LLC, Oct 30, 2007 - Computers - 368 pages
Whether you're new to ASP.NET AJAX or an experienced developer, this book has what you're looking for! With its tutorial-like design, the text covers many basic and advanced topics for building dynamic database driven ASP.NET web applications. Assuring that you have a solid foundation, the text begins by exploring the basics of n-tier applications, databound custom controls, Http modules, and the ASP.NET AJAX extensions. Section II of the text takes all that was previously examined plus much more and puts it into practical use via the construction of ready to use controls for either standalone products or integration into your current project(s). ASP.NET Membership and Profile services are examined along with the AJAX application services enabling for seamless membership and profile integration into our highly rich AJAX-enabled web applications. Watch as the text seamlessly merges AJAX extenders and custom controls to build highly rich user experiences in a reusable object-oriented fashion. The design and construction of all objects and controls are discussed in full detail in a tutorial like format to achieve the desired goal - an in-depth understanding of the underlying technology so that you can not only use our projects but modify and design your own! All projects and controls built within the text make heavy use of AJAX technologies enabling a lucid understanding of real-world implementations. With its practical approach to constructing reusable object-oriented ASP.NET AJAX controls, ASP.NET AJAX Programming Tricks is a must for anyone with the desire to build or hone their ASP.NET AJAX programming skills.
 

What people are saying - Write a review

We haven't found any reviews in the usual places.

Selected pages

Contents

Putting It All Together
189
Constructing our DAL
191
Constructing our BLL
199
Transaction Management
204
Constructing Our Presentation Layer
207
Conclusion
209
Introducing The APT Toolkit
213
Understanding Extenders
215

Fully Rendered Custom Control
15
What Is The HtmlTextWriter Object?
20
Composite Controls
23
The Best Of Both Worlds
27
Maintaining View State
30
Improving Control State
33
Postbacks and Events
35
Postback Event
36
Initiating an ASPNET 20 Style Postback
39
Event Bubbling
42
Control Property Collections
43
Control Builders
48
Simple Tabbed Custom Control
49
Templated Controls
52
Implementing A Template Property
53
Defining A Default Template
55
Access To A Templates Controls
57
Data Binding
58
What About TwoWay Data Binding?
60
TwoWay Binding And Default Templates
63
Databound Controls
64
More twoway binding
66
Note On The Datasource Objects
70
Conclusion
71
AJAX Fundamentals
75
AJAX Overview
76
What is AJAX?
77
The XMLHttpRequest Object
78
Getting Started With The XMLHttpRequest Object
81
Parsing Response Data
84
Parsing An XML Document
87
Passing Data To The Server
92
Processing Request Data From Within A Page
93
Processing XML Request Data
98
A Simple RSS Feed Sample
101
The ClientScriptManager
106
Conclusion
109
Introducing ASPNET AJAX Extensions
111
What Are The ASPNET AJAX Extensions?
112
Client Architecture
113
Networking
114
JavaScript Object Notation JSON
116
ASPNET AJAX Modules
117
Supporting Page Level Services
119
Controlling Access To Resources
120
The ScriptHandlerFactory
121
WebServiceData
125
Application Services
126
ASPNET AJAX Serialization
130
Introducing the ScriptManager UI Control
135
ScriptManager OnInit
137
The PageRequestManager
138
Registering Client Scripts
139
Script Mode
141
Embedding Resources
142
Client Proxies
145
The WebServiceProxy Object
150
Introducing Web Services
151
Creating A Web Service
152
Partial PageRedrawing
155
The UpdatePanel Under The Hood
157
Refreshing An UpdatePanel
159
Client Scripts
162
PageRequestManager Initialize
163
The Response
165
Conclusion
166
Reusable NTier Application Structure
169
What Is An NTier Application?
170
Data Access
171
DataSet or Custom Objects?
172
Custom Objects
174
Business Logic Layer
175
Presentation Layer
176
Overview
179
Application Configuration
180
Building The DAL
181
Building The Business Logic Layer
183
A Note On Data Caching
184
Building The Base Class
185
What Is An Extender?
216
The Extender Base Class
217
How An Extender Is Rendered
219
Focus Extender
221
ClientSide Solution
223
Using The Extender
227
Improving Our Extender Implementation
229
The ExtenderBase Class
232
Conclusion
233
The Watermark Extender
235
Design
236
ClientSide Components
237
Applying The Watermark
240
Registering Submit And Partial Page Event Handlers
242
Removing And Reapplying The Watermark Upon Form Submission
243
Using The Watermark Extender
245
Registering BehaviorBase With The Page
249
Partial Page Update Extender
251
Design
252
Implementation
253
ClientSide Component
254
Partial Page Update Behavior
256
Using The Partial Page Update Extender
258
Conclusion
259
Popup Extender
261
Design
262
The PopupContentContainer
266
ClientSide Component
271
Using the PopupExtender
274
Conclusion
275
Composite Controls with Script Functionality
277
Script Controls and Extenders Controls
278
Client Behaviors and Controls
279
ServerSide Base Class
280
Registration of Client Objects
285
ClientSide Base Class
286
Sample Tab Control
288
ClientSide Component
292
Using the Tabs Control
295
Conclusion
296
User Memberships and Profiles
299
The Membership and MembershipUser Classes
300
Membership Providers
301
SQL Membership Provider
303
Database Structure
304
Developing a Custom Membership Provider
305
Object Implementation
306
MySQL Provider Implementation
312
Using the MySQL Provider
316
ServerSide Authentication Web Service
317
Configuring Our Application To Use Authentication Services
318
ClientSide Authentication Service
319
Making Use of Authentication Services
322
Login Control
324
Class Implementation
325
ClientSide Component
329
Performing the Login Action
330
Using the Login Control
332
Developing Additional Client Web Services
333
The UserServices Web Service
334
The ForgotPassword Control
336
ClientSide Implementation
338
Defining Profile Properties
340
Using Profile Properties
341
AJAX Profile Service
342
ServerSide Profile Service
343
ClientSide Profile Service
344
Migrating Profiles
346
Conclusion
348
Conclusion
349
A VoIP Portal
350
The Data Access Layer and Business Object Layer
352
The Presentation Layer
354
Web Services
356
Login Page
357
Page Content
358
Final Thoughts
360
Index
363
Copyright

Common terms and phrases

Popular passages

Page xvi - We make every effort to ensure that there are no errors in the text or in the code. However, no one is perfect, and mistakes do occur. If you find an error in one of our books (such as a spelling mistake or faulty piece of code), we would be very grateful for your feedback.
Page 36 - End LoadViewState aspx.page Begin ProcessPostData aspx.page End ProcessPostData aspx.page Begin ProcessPostData Second Try aspx.page End ProcessPostData Second Try aspx.page Begin Raise ChangedEvents aspx.page End Raise ChangedEvents aspx.page Begin Raise PostBackEvent...
Page 39 - ... name=" _ EVENTTARGET" value=" /> <input type="hidden" name=" _ EVENTARGUMENT" value="" /> <script language=" javascript"> <! function _ doPostBack(eventTarget , eventArgument) { var theform = document .Forml ; theform. _ EVENTTARGET. value = eventTarget; theform. _ EVENTARGUMENT. value = eventArgument; theform. submit ( ) ; </script...
Page 6 - ASP.NET finishes executing an event handler in order to let caching modules store responses that will be used to serve subsequent requests from the cache.

Bibliographic information