BUY THIS BOOK
Add to Cart

Print Book $39.99


Add to Cart

Print+PDF $51.99

Add to Cart

PDF $31.99

Safari Books Online

What is this?

Add to UK Cart

Print Book £24.99

What is this?

Looking to Reprint or License this content?


Programming ASP.NET AJAX
Programming ASP.NET AJAX

By Christian Wenz
Book Price: $39.99 USD
£24.99 GBP
PDF Price: $31.99

Cover | Table of Contents | Colophon


Index


[ Symbols ], 
[ A ], 
[ B ], 
[ C ], 
[ D ], 
[ E ], 
[ F ], 
[ G ], 
[ H ], 
[ I ], 
[ J ], 
[ K ], 
[ L ], 
[ M ], 
[ N ], 
[ O ], 
[ P ], 
[ R ], 
[ S ], 
[ T ], 
[ U ], 
[ V ], 
[ W ], 
[ X ], 
[ Y ], 
[ Z ], 


Symbols[ Top ]
$addHandler( ) function, 67, 224
$addHandlers( ) function, 68
$clearHandlers( ) function, 68
$get( ) function, 165
$removeHandler( ) function, 68
@ Page directive, 172

A[ Top ]
aborting requests, 131
accepting cookies, 100
access
      arbitrary elements, 41
      base methods, 78
      form elements, 38
      HTML elements, 245
      JavaScript methods, 242-245
      OWA, 45
      page elements, 38-42
      profiles
            data, 135-139
            groups, 139-144
Accordian control, 197-199
actions, 188
addCssClass( ) method, 257
AddHistoryPoint( ) method, 388
adding
      animation
            drag-and-drop, 193-195
            framework, 185-190
            programming, 190-193
      Autocomplete behavior to TextBox controls, 201-208
      breakpoints, 418
      controls, Control Toolkit, 180
      drag-and-drop behavior, 305
      DragPanelExtender controls, 193
      handlers, 67, 68
      Label controls, 118
      resource files, 161
      toString( ) methods, 78
AdventureWorks, 117
      installing, 11
Ajax
      ASP.NET AJAX and, 3
      ASP.NET, combining, 51
      JSON, 61-64
      XMLDocument object, 55-60
      XMLHttpRequest object, 45-55
AjaxControlExtender folder, 178
Always mode, 124
AlwaysVisibleControlExtender control, 200
Amazon web services, 345-367
animation
      applying, 368
      drag-and-drop, 193-195
      elements, modifying, 373-377
      events, 187
      framework, 185-190
      programming, 190-193
      types, 187
AnimationChildren property, 191
AnimationExtender control, 190
AnimationExtender element, 185
anonymous JavaScript functions, 51
<anonymousIdentification> element, 134
API (Application Programming Interface), authentication services, 147
appendChild( ) method, 42
applications
      Ajax, overview of, 3
      ASP.NET, 5
      authentication
            login, 148-154
            preparing, 145-147
      debugging
            ASP.NET AJAX, 419-424
            Firebug, 415
            tools, 413
            Visual Studio 2005, 416-421
            Web Development Helper, 416
      functionality, applying, 244
      globalization, 169-172
      JSON, 61-64
      localization, 156
            satellite resources, 159-169
            scripts, 156-159
      page methods, 93-95
      profiles, accessing, 135-139, 139-144
      UpdatePanel control, 116
            regions, 116-131
applying
      animations, 368
            grouping, 377-380
      behaviors, 297
            ClickBehavior, 298-301
            drag-and-drop, 301-310
      client controls, 242-259
      Control Toolkit, 181-184
      functionality, 243
      PHP with ASP.NET AJAX, 406-409
      remote web services, 337
            Amazon, 345-367
            Google, 338-344
            Yahoo!, 358-367
applyPageState( ) function, 382
arbitrary elements, accessing, 41
architecture
      Ajax, 3
      ASP.NET, 5
      ASP.NET AJAX, 12-14
arguments, writing custom functions with, 33
arrays
      extensions, 433
      JavaScript, 27
.asmx file, 93
ASP.NET
      Ajax, combining, 51
      ASP.NET AJAX and, 5
      Configuration command, 145
      Configuration Tool, 146
      Web Application Administration Tool, 145
      Web Parts, 396-401
ASP.NET AJAX
      animations
            applying, 368
            grouping, 377-380
            modifying elements, 373-377
      architecture, 12-14
      ASP.NET Web Parts, 396-401
      authentication service
            login/logout, 148-154
            preparing applications, 145-147
      base methods, 257-259
      behaviors
            applying, 297
            ClickBehavior, 298-301
            drag-and-drop, 301-310
      buttons, 251
      checkboxes, 252
      client controls, 241
            applying, 242-259
            handling events, 259-263
      clients, 83-87
      components, 310-313
      Control Toolkit, 177
            Accordian control, 197-199
            applying, 181-184
            contributing to the community, 228-237
            customizing controls, 219-228
            installation, 177-180
      data binding, 264-280
      data validation, 280-296
      debugging, 419-424
      examples, 14-19
      extensions to existing objects, 70
      hyperlinks, 249
      images, 247-249
      installation, 7-13
      Label control, 246
      OOP features for JavaScript, 71-83
      PHP, applying with, 406-409
      profiles
            accessing data, 135-139
            accessing groups, 139-144
            preparing web sites, 133-135
      references, 432-434
      satellite resources, 159-169
      ScriptManager control, 19-20
      selection lists, 253-255
      server data, ListView control, 314-330
      shortcuts, 67-70
      text fields, 255-257
AssemblyInfo.cs file, 164
asynchronous requests, managing, 128-131
asyncInvoke( ) method, 109
AsyncPostBackTrigger, 122
Atlas, 3
attaching calendars to text fields, 208
attacks, DoS, 204
attributes
      EnableScriptLocalization, 168
      id, 277
      methodName, 278
      property, 275
      propertyKey, 275
      ScriptMethod, 93
      target, 275
      url, 277
      useGet, 278
      value, 275
authentication
      applications
            login/logout, 148-154
            preparing, 145-147
      service support, 436
Authentication.aspx file, 149
<authenticationService> element, 147
Autocomplete behavior, adding TextBox controls, 201-208
AutoCompleteExtender control, 201
avoiding
      client-side caching, 63
      SQL injection, 205
AWSECommerceService class, 346
AWSECommerceService.cs file, 346

B[ Top ]
back/forward buttons, 384-388
BackgroundCssClass property, 212
backgrounds, fade effects, 371
base class library, 4
base methods, 257-259
      accessing, 78
base types, 70, 72
baseArguments parameter, 78
behaviors
      applying, 297
      ClickBehavior, 298-301
      drag-and-drop, 301-310
binding
      data
            to HTML lists, 324
            to HTML tables, 327-330
      direction, 265, 268
      ListView controls to data, 315
      markup for, 271-280
<binding> element, 272
blacklist approach, 204
blogs, spam, 214-216
bookmarks
      security, 383
      troubleshooting, 382
            back/forward buttons, 384-388
            Futures release, 388-395
Boolean extensions, 433
Boolean operators, 28
breakpoints, adding, 418
bridge files, 342, 347
      calling, 354
      requests, caching, 365
      updating, 355
browsers
      compatibility layer, 4
      cookies, accepting, 100
      JavaScript support, 25
      language
            modifying, 170
            selecting, 170
      XMLHttpRequest object, 45
built-in animations
      applying, 368
      elements, modifying, 373-377
      grouping, 377-380
built-in objects, JavaScript, 32-34
built-in transformers, 266-268
bulleted lists, 33
buttons, 251
      back/forward, 384-388
      events for, 259
      Load Vendors, 326

C[ Top ]
caches
      bridge file requests, 365
      client-side caches, 63
      GAC, 8
CalendarExtender control, 208
calendars, attaching text fields to, 208
callComplete( ) function, 364
calling
      Amazon web services, 348
      bridge files, 354
      Google web services, 343
      PHP ASP.NET AJAX web services, 408
      remote web services, 105-114
      web services
            from Internet Explorer, 107
            in Mozilla browsers, 110
            Yahoo!, 361
callService( ) method, 106
canceling wait screens, 130
Cascading Style Sheets (see CSS)
checkboxes, 252
checking
      data types, 284
      ranges, 285
      against regular expressions, 283
      required fields, 281
classes, 166
      AWSECommerceService, 346
      derived, 75
      Designer, 221
      extender, 222
      inheritance, 74-80
      libraries, 166
      PageMethods, 93
      PageRequestManager, 128
      PHPHelloWorldService, 407
      ProfileService, 135
      SOAPCall, 108
      StringBuilder, 84
      sys.Debug, 422
      Sys.Preview.Binding, 264
      Sys.Preview.UI.Effects.NumberAnimation, 373
      Sys.Preview.UI.Window, 243
      TextBoxMaskBehavior, 223
      wrapper
            Amazon web service, 347
            Google web service, 341
            Yahoo! web service, 358
client controls, 241
      applying, 242-259
      data validation, 280-296
      handling events, 259-263
clients, 12
      animation, setting on, 192
      ASP.NET AJAX, programing, 3
      .NET classes, 83-87
client-side caching, 63
code
      for data bindings, 264-271
      interfaces, using to structure, 81
      troubleshooting, 382
            back/forward buttons, 384-388
            Futures release, 388-395
CodePlex, uploading patches, 237
CollapseControlID property, 210
CollapsiblePanelExtender control, 210
collapsing panes, 210
combining Ajax and ASP.NET, 51
commands
      ASP.NET Configuration, 145
      POST, 54
Community Technology Preview (CTP), 6
comparison operators, 28
compatibility layer, 4
complex data, exchanging, 100-105
components, 12
      ASP.NET AJAX, 310-313
      scripts, 4
      toolkits, moving, 182
compositing animations, 377-380
Conditional mode, 124
configuration
      animation, 185-190
            drag-and-drop, 193-195
            programming, 190-193
      culture, 160
      event handling, 274
      globalization, 169-172
      patches, 228
      permalinks, 394
      tabbed interfaces, 216
ConfirmButton control, 181, 182
consuming web services with JavaScript, 105-114
content template, 117
contributing to the Control Toolkit community, 228-237
Control Toolkit, 6, 177
      Accordian control, 197-199
      animation framework, 185
      applying, 181-184
      contributing to the community, 228-237
      controls, customizing, 219-228
      DragPanel extender, 193
      installation, 177-180
ControlID property, 122
controls
      AlwaysVisibleControlExtender, 200
      AnimationExtender, 190
      ASP.NET AJAX, 5
      AutoCompleteExtender, 201
      base methods, 257-259
      buttons, 251
      CalendarExtender, 208
      checkboxes, 252
      client, 241
            applying, 242-259
            data validation, 280-296
            handling events, 259-263
      CollapsiblePanelExtender, 210
      ConfirmButton, 181, 182
      customizing, 219-228
      DragPanelExtender, adding, 193
      hyperlinks, 249
      images, 247-249
      importing, 167
      Label, 246
            adding, 118
      ListView, 314-330
      ModalPopupExtender, 212
      NoBot, 214
      Repeater, 315
      ScriptManager, 19-20, 435
      scripts, 4
      Select, 254
      selection lists, 253-255
      server, 5
      structures, JavaScript, 27-31
      TabContainer, 216
      TabPanel, 216
      text fields, 255-257
      text localization, 166
      TextBox, adding Autocomplete behavior, 201-208
      Timer properties, 438
      UpdateHistory, 384
      UpdatePanel, 116, 385
            properties, 437
            regions, 116-131
      UpdateProgress properties, 437
      WebPartManager, 398
controlsGridView, 117
converting web services, 350
cookies, sessions, 100
core services, 4
createAttribute( ) method, 42
createElements( ) method, 42
createTextNode( ) method, 42
Cross-Site Scripting (XSS), 383
CSS (Cascading Style Sheets), 3
      Accordian control, 198
      class methods, 69
      HTML elements, positioning, 199-201
CTP (Community Technology Preview), 6
culture, configuring, 160
custom functions, writing, 32
custom types, returning, 331
customization
      controls, 219-228
      data sources, 330-336
      extenders, 227
      transformers, 269-271
      validation, 287-288
customValidator, 281

D[ Top ]
data binding, 264-280
      markup, 271-280
      programmatic, 266-268
data context, 265
data paths, 265
data sources, customizing, 330-336
data types, checking, 284
data validation, 280-296
databases
      AdventureWorks, 117
      sample, installation, 10
dataPath property, 324
DataRowCollection objects, 316
DataTable, 331
dateformat variable, 156
dates
      extensions, 433
      globalization, 171, 172
daynames variable, 156
debugging tools, 413
      ASP.NET AJAX, 419-424
      Firebug, 415
      Visual Studio 2005, 416-421
      Web Development Helper, 416
deleting handlers, 68
denial-of-service (DoS) attacks, 204
derived classes, 75
Design view, Update Panel in, 118
Designer class, 221
Development Branch, downloading, 232
direction, binding, 265, 268
displaying
      custom data sources, 334
      wait screens, 126-128
<div> element, 90
DivideNumbers( ) method, 90, 100
doClick( ) function, 149
document object, 38
Document Object Model (see DOM)
document.getElementById( ) method, 67
documentation, Control Toolkit, 180
documents, XMLDocument object, 55-60
DOM (Document Object Model), 3
      elements, 69
      methods, 42-43
      references, 428-431
DoS (denial-of-service) attacks, 204
drag-and-drop
      animation, 193-195
      behavior, 301-310
DragHandleID property, 194
DragOverlayExtender, 304-306
DragPanel extender, 193
DragPanelExtender control, adding, 193
_duration property, 369
dynamically collapsing single panes, 210

E[ Top ]
Eich, Brendan, 23
elements
      animation, modifying, 373-377
      AnimationExtender, 185
      <anonymousIdentification>, 134
      arbitrary, accessing, 41
      <authenticationService>, 147
      <binding>, 272
      <div>, 90
      DOM, 69
      <FadeOut>, 186
      <floatingBehavior>, 302
      forms, accessing, 38
      HTML, 272
            accessing, 245
            positioning, 199-201
      <iframe>, 383
      <layoutTemplate>, 315
      moving, 374, 375
      page, accessing, 38-42
      <Panes>, 198
      <proxy>, 341
      <span>, 43, 91
      <system.web.extensions>, 134
      <tagElement>, 397
      <template>, 324
embedding JavaScript, 24, 166
Enabled property, 304
EnableScriptLocalization attribute, 168
enabling profiles, 133
encapsulation, 35
encode( ) method, 109
English language, creating resource files, 165
entry forms, spam, 214-216
enumerations, 85
error handling, web services, 88-92
error messages, 92
eval( ) function, 63
evaluating JSON notation, 62
EventName property, 122
events
      animation, 187
      for buttons, 259
      client controls, handling, 259-263
      handlers, adding, 68
      handling, 274
      key down, 224
      for lists, 261
      scripts, handling with, 24
      Tick, 122
      trigger, 122
examples, ASP.NET AJAX, 14-19
exceptions
      throwing, 89
      web services, error handling, 88-92
exchanging complex data, 100-105
ExpandControlID property, 210
extender class, 222
extenders
      customizing, 227
      drag-and-drop, 304-306
      JavaScript, 225
Extensible Markup Language (see XML)
extensions, 6
      arrays, 433
      Boolean, 433
      dates, 433
      Mozilla, 109
      numbers, 434
      objects, 432, 434
      strings, 434

F[ Top ]
<FadeOut> element, 186
failedCallback parameter, 135
Fiddler, 109
fields
      checking, 281
      form properties, 40
      text, 255-257
            attaching calendars to, 208
files
      .asmx, 93
      AssemblyInfo.cs, 164
      Authentication.aspx, 149
      bridge, 342, 347
            caching requests, 365
            calling, 354
            updating, 355
      .htc (HTML control), 106
      JavaScript, embedding, 166
      MathService.asmx, 101
      resources, adding, 161
      Web.config, 133
Firebug, 140, 415
Firefox
      debugging with, 420
      (see also Mozilla)
<floatingBehavior> element, 302
folders
      AjaxControlExtender, 178
      SampleWebSite, 178
for loops, 29
for...in loops, 30
forms
      elements, accessing, 38
      fields, properties, 40
      spam, 214-216
      submission, preventing, 294-296
_fps property, 369
framework, animation, 185-190
functionality, applying, 243
functions
      $addHandler( ), 67, 224
      $addHandlers( ), 68
      $clearHandlers( ), 68
      $get( ), 165
      $removeHandler( ), 68
      applyPageState( ), 382
      callComplete( ), 364
      custom, writing, 32
      doClick( ), 149
      eval( ), 63
      getCurrentPageState( ), 382
      getXMLHTTP( ), 47
      gotoStepClick( ), 391
      helper, 67
            ASP.NET AJAX, 432
      JavaScript anonymous, 51
      loginError( ), 150
      lognComplete( ), 150
      pageLoad( ), 69, 149
      pageNavigate( ), 391
      profileError( ), 137, 142
      profileLoadedError( ), 136
      saveProfile( ), 137
      stateChanged( ), 50
Futures CTP installation, 11
Futures release, 6
      bookmarks, troubleshooting, 388-395
      client controls, 241

G[ Top ]
GAC (Global Assembly Cache), 8
Garrett, Jesse James, 44
generating
      bulleted lists, 33
      pop ups, 211-214
German language, creating resource files, 161
get_alternateText( ) method, 248
get_argument( ) method, 251
get_command( ) method, 251
get_exceptionType( ) method, 90
get_height( ) method, 248
get_imageURL( ) method, 248
get_message( ) method, 90
get_selectedValue( ) method, 255
get_stackTrace( ) method, 90
get_statusCode( ) method, 90
get_text( ) method, 246
get_timeOut( ) method, 90
get_width( ) method, 248
getCurrentPageState( ) function, 382
getElementsByTagName( ) method, 42
GetPropertyValue( ) method, 222
getXMLHTTP( ) function, 47
Global Assembly Cache (GAC), 8
globalization, 169-172
Google Suggest, 201
Google Web API Developer's Kit, 339
Google web services, 338-344
      XSL transformation file, 351
GoogleSearch.wsdl file, 339
gotoStepClick( ) function, 391
GridView control, 117
groups
      animations, 377-380
      profiles, accessing, 139-144
      validation, 291-294

H[ Top ]
handlers
      adding, 67, 68
      deleting, 68
handling events, 274
      client controls, 259-263
      with scripts, 24
Hello User, 14-19
helper functions, 67
      ASP.NET AJAX, 432
history
      of JavaScript, 23
      of XMLHttpRequest object, 45
HistoryEventArgs object, 388
historyNavigate( ) method, 385
HorizontalSide property, 200
.htc (HTML control) files, 106
HTML (Hypertext Markup Language)
      data binding, 264-280
      elements, 272
            accessing, 245
            positioning, 199-201
      lists, binding data to, 324
      selection lists, 327
      tables, binding data to, 327-330
      web services, converting, 350
HTTP (Hypertext Transfer Protocol)
      headers with Accept-Language, 169
      requests, creating, 48
      XMLHttpRequest object, 45-55
HttpContext.Current.Session, 96
hyperlinks, 249
      images, 251
Hypertext Markup Language (see HTML)
Hypertext Transfer Protocol (see HTTP)

I[ Top ]
id attribute, 277
IDE (Integrated Development Environment) installation, 7
<iframe> element, 383
images, 247-249
      hyperlinks, 251
importing controls, 167
inheritance
      classes, 74-80
      JavaScript, 36
initialize( ) method, 223
initializing bindings, 266
injections, avoiding SQL, 205
inputBox( ) method, 243
installation
      ASP.NET AJAX, 7-13
      Control Toolkit, 177-180
      Firebug, 415
      Futures CTP, 11
      IDE, 7
      sample databases, 10
      SQL Server Express, 10
      templates, 9
instance parameter, 78
instantiation
      ItemSearchRequest object, 346
      objects
            derived from the same base class, 77
            with the same namespace, 74
Integrated Development Environment (see IDE)
IntelliSense, 5
interfaces, 80-83
      tabbed, creating, 216
      type parameters, 72
internationalization, 169-172
Internet Explorer
      language, modifying, 171
      Visual Studio 2005, debugging, 417
      Web Development Helper, 416
      web services and, 106-108
      XMLHttpRequest object, 46
      (see also browsers)
invoking methods, 276-280
ItemSearchRequest object, 346
itemTemplateParentElementId, 323

J[ Top ]
JavaScript
      animation, configuring, 191
      anonymous functions, 51
      arrays, 27
      ASP.NET AJAX
            clients, 83-87
            extensions to existing objects, 70
            OOP features for, 71-83
            shortcuts, 67-70
      authentication, 150
      bookmarks, troubleshooting, 392
      built-in objects, 32-34
      control structures, 27-31
      DOM methods, 42-43
      embedding, 24, 166
      extenders, 225
      inheritance, 36
      libraries, loading, 20
      methods, 25
            accessing, 242-245
      OOP, 34-38
      overview of, 24-25
      page element access, 38-42
      resource files, creating, 165
      variables, 26
      web services, consuming with, 105-114
      (see also scripts)
JavaScript Object Notation (see JSON)
JSON (JavaScript Object Notation), 61-64
      serialization/deserializaiton, 100-105

K[ Top ]
keydown events, 224

L[ Top ]
Label controls, 246
      adding, 118
labels, fade effects, 371
languages
      browsers
            modifying, 170
            selecting, 170
      JavaScript, 42-43
            arrays, 27
            built-in objects, 32-34
            control structures, 27-31
            methods, 25
            OOP, 34-38
            overview of, 24-25
            page element access, 38-42
            variables, 26
      script localization, 156
layers, compatibility, 4
<layoutTemplate> element, 315
length animation, moving elements, 375
libraries
      animations, 368
      base class, 4
      classes, 166
      JavaScript, loading, 20
      Microsoft Ajax Library, 5, 6
life cycle of web pages, 14
links
      data binding, 264-280
      hyperlink controls, 249
      WSDL descriptions, 106
lists
      bulleted, 33
      events for, 261
      HTML
            binding data to, 324
            selection, 327
      selection, 253-255
ListView control, 314-330
LiveScript, 23
Load Vendors button, 326
load( ) method, 136, 142
loadCompletedCallback parameter, 135
loading JavaScript files, 20
localization, 156
      satellite resources, 159-169
      scripts, 156-159
LocDateControl class, 166
login, 148-154
loginComplete( ) function, 150
loginError( ) function, 150
logout, 148-154
logout( ) method, 148
loops
      for, 29
      for...in, 30
      while, 31

M[ Top ]
maintaining session state, 95-101
management
      asynchronous requests, 128-131
      data, 336
mapping Web Parts, 397
markup, data binding, 271-280
mashups, 3, 337
MathService.asmx file, 101
messageBox( ) method, 243
messages, error, 92
methodName attribute, 278
methodName parameter, 78
methods
      addCssClass( ), 257
      AddHistoryPoint( ), 388
methods (continued)
      appendChild( ), 42
      ASP.NET AJAX, 432-434
      asyncInvoke( ), 109
      base, 257-259
            accessing, 78
      callService( ), 106
      createAttribute( ), 42
      createElements( ), 42
      createTextNode( ), 42
      DivideNumbers( ), 90, 100
      document.getElementById( ), 67
      DOM, 42-43, 428-431
      DOM elements, 69
      encode( ), 109
      get_alternateText( ), 248
      get_argument( ), 251
      get_command( ), 251
      get_exceptionType( ), 90
      get_height( ), 248
      get_imageURL( ), 248
      get_message( ), 90
      get_selectedValue( ), 255
      get_stackTrace( ), 90
      get_statusCode( ), 90
      get_text( ), 246
      get_timeOut( ), 90
      get_width( ), 248
      GetPropertyValue( ), 222
      historyNavigate( ), 385
      initialize( ), 223
      inputBox( ), 243
      invocation, 276-280
      JavaScript, 25
            accessing, 242-245
      load( ), 136, 142
      logout( ), 148
      messageBox( ), 243
      open( ), 49
      page, 93-95
      pageLoad( ), 322
      play( ), 369
      preventDefault( ), 224
      ProcessRequest( ), 407
      registerClass( ), 72
      removeCssClass( ), 257
      SaveTime( ), 97
      Search( ), 343
      SearchXslt( ), 352
      send( ), 49
      set_alternateText( ), 248
      set_argument( ), 251
      set_command( ), 251
      set_direction( ), 268
      set_height( ), 248
      set_imageURL( ), 248
      set_OnClick( ), 192
      set_text( ), 246
      set_transformerArgument( ), 265
      set_width( ), 248
      SetPropertyValue( ), 222
      toggleCssClass( ), 257
      toString( ), 38
            adding, 78
      Update( ), 123
      window.setInterval( ), 122
      window.setTimeout( ), 122
      XMLHttpRequest object, 426
Microsoft Ajax Library, 5, 6
Microsoft SQL Server Management Studio Express (SSMSE), 11
Microsoft.Web.Preview.UI.Controls.WebParts namespace, 398
Mocha, 23
modal JavaScript windows, 243
ModalPopupExtender control, 212
modification
      animation elements, 373-377
      language in browsers, 170
moving
      elements, 374, 375
      toolkit components, 182
      Web Parts, 398
Mozilla
      debugging with, 420
      web services and, 108-112
      XMLHttpRequest object, 47
      (see also browsers)

N[ Top ]
name parameter, 72
namespaces, 71-74
      Sys.Preview.UI, 241
.NET
      classes, client versions of, 83-87
      session state, maintaining, 95
NoBot control, 214
NoSource ZIP archive, 178
notation
      JSON, 61-64
      serialization/deserialization, 100-105
number extensions, 434

O[ Top ]
object-oriented programming (see OOP)
objects
      ASP.NET AJAX
            clients, 83-87
            extensions to existing, 70
            OOP features for JavaScript, 71-83
      built-in, JavaScript, 32-34
      creating, 61
      DataRowCollection, 316
      document, 38
      enumerations, 85
      extensions, 432, 434
      HistoryEventArgs, 388
      ItemSearchRequest, 346
      JSON, 61-64
            serialization/deserialization, 100-105
      Sys.Preview.UI.Effects.FadeAnimation, 370
      XMLDocument, 55-60
      XMLHttpRequest, 45-55
            references, 426
OKControlID property, 212
onreadystatechange property, 49
OOP (object-oriented programming), 4
      features for JavaScript, 71-83
      JavaScript, 34-38
open( ) method, 49
opening windows, 245
operators
      Boolean, 28
      comparison, 28
      typeof, 47
Outlook Web Access (see OWA)
OWA (Outlook Web Access), 45

P[ Top ]
packages, ASP.NET AJAX, 6
page elements, accessing, 38-42
page methods, 93-95
Page_Load event handlers, 50
pageLoad( ) function, 69, 149
pageLoad( ) method, 322
PageMethods class, 93
pageNavigate( ) function, 391
PageRequestManager class, 128
PageRequestManager instance, 128
panels, drag-and-drop, 194
panes
      Accordian control, 197-199
      collapsing, 210
<Panes> element, 198
parameters
      base type, 72
      baseArguments, 78
      failedCallback, 135
      instance, 78
      interface type, 72
      loadCompletedCallback, 135
      methodName, 78
      name, 72
      propertyNames, 135
      UserContext, 135
passwords, profiles, 144
patch utility, 228
patches
      packaging, 234
      saving, 233
      uploading, 237
paths, data, 265
permalinks, creating, 394
personalized drag-and-drop, 306-310
PHP, applying with ASP.NET AJAX, 406-409
PHPHelloWorldService class, 407
PHPHelloWorldService.php file, 406
play( ) method, 369
plugins, Firebug, 140
PopupControlID property, 212
popups, generating, 211-214
positioning HTML elements, 199-201
POST command, 54
postbacks
      triggering, 121, 122
      UpdatePanel control, 116
            regions, 116-131
PostBackTrigger, 122
preventDefault( ) method, 224
preventing form submission, 294-296
PreviewDragDrop.js file, 301
PreviewGlitz.js file, 368
ProcessRequest( ) method, 407
profileError( ) function, 137, 142
profileLoadedError( ) function, 136
profiles
      accessing, 135-139, 139-144
      service support, 436
      web sites, preparing, 133-135
ProfileService class, 135
programmatic data binding, 266-268
programmatic validation, 288-291
programmatically updating sections, 123-126
programming
      animation, 190-193
      OOP, 4
            JavaScript, 34-38
      XMLHttpRequest object, 46-55
<ProgressTemplate> template, 126
properties, 265
      AnimationChildren, 191
      ASP.NET AJAX, 432-434
      BackgroundCssClass, 212
      <binding> element, 272
      CollapseControlID, 210
      ControlID, 122
      dataPath, 324
      DOM, 428-431
      DragHandleID, 194
      _duration, 369
      Enabled, 304
      EventName, 122
      ExpandControlID, 210
      form fields, 40
      _fps, 369
      HorizontalSide, 200
      OKControlID, 212
      onreadystatechange, 49
      PopupControlID, 212
      profiles, defining, 134
      property, 324
      responseText, 50
      responseXML, 50
      ScriptManager control, 435
      _target, 369
      TargetControlID, 185, 194, 210, 212, 304
      Time control, 438
      triggers, 437
      UpdatePanel control, 437
      UpdateProgress control, 437
      UserData, 134
      VerticalSide, 200
      XMLHttpRequest object, 426
      xml-script, setting, 275
property attribute, 275
property property, 324
propertyKey attribute, 275
propertyNames parameter, 135
<proxy> element, 341

R[ Top ]
random CSS class web service, 277
ranges, checking, 285
rangeValidator, 281
reading
      profile data, 137
      profile group data, 142
references
      ASP.NET AJAX, 432-434
      DOM, 428-431
      XMLHttpRequest object, 426
regexValidator, 281
regions, UpdatePanel control, 116-131
registerClass( ) method, 72
registering
      Microsoft.Web.Preview.UI.Controls.WebParts namespace, 398
      toolkits, 181
regular expressions, checking against, 283
remapping Web Parts, 397
remote web services, 337
      Amazon, 345-367
      calling, 105-114
      Google, 338-344
      Mozilla browsers, 112
      Yahoo!, 358-367
removeCssClass( ) method, 257
Repeater control, 315
requests
      aborting, 131
      asynchronous, managing, 128-131
      HTTP, creating, 48
      XMLHttpRequest object, 45-55
required fields, checking, 281
requiredFieldValidator, 281
resource files, adding, 161
responseText property, 50
responseXML property, 50
REST, 358-367
results of web services, transforming with XSLT, 350-358
returning custom types, 331

S[ Top ]
sample databases, installation, 10
SampleWebSite folder, 178
satellite resource localization, 159-169
saveProfile( ) function, 137
SaveTime( ) method, 97
saving patches, 233
Script Explorer, 419
<script> tag, 24
ScriptManager control, 19-20, 435
ScriptManager server control, 12
ScriptMethod attribute, 93
scripts
      controls and components, 4
      events, handling with, 24
      localization, 156-159
      support, 436
Search( ) method, 343
searching Amazon catalogs, 350
SearchXslt( ) method, 352
sections, 117-121
      displaying wait screens, 126-128
      managing asynchronous requests, 128-131
      programmatically at timed intervals, 123-126
      at timed intervals, 122-124
security
      bookmarks, 383
      JSON, 63
      XMLHttpRequest object, 55
Select control, 254
selection lists, 253-255
      HTML, 327
selection of languages for browsers, 170
send( ) method, 49
servers, 12
      animation, setting on, 190
      controls, 5
      ListView control, 314-330
services
      ASP.NET, 5
      authentication service, 436
      core, 4
      profile support, 436
      (see also web services)
session state, maintaining, 95-101
set_alternateText( ) method, 248
set_argument( ) method, 251
set_command( ) method, 251
set_direction( ) method, 268
set_height( ) methods, 248
set_imageURL( ) method, 248
set_OnClick( ) method, 192
set_text( ) method, 246
set_transformerArgument( ) method, 265
set_width( ) method, 248
<setPropertyAction> tag, 274
SetPropertyValue( ) method, 222
short stack trace, 92
shortcuts, ASP.NET AJAX, 67-70
single panes, collapsing panes, 210
SmartTag support, 118
SOAPCall class, 108
Solution Explorer, 164
spam, blogs, 214-216
<span> element, 43, 91
SQL (Structured Query Language), avoiding injection, 205
SQL Server Express installation, 10
SSMSE (Microsoft SQL Server Management Studio Express), 11
standards, XMLHttpRequest object, 46
stateChanged( ) function, 50
string extensions, 434
StringBuilder class, 84
submission of forms, preventing, 294-296
support
      authentication service, 436
      profiles
            preparing web sites for, 133-135
            services, 436
      scripts, 436
      SmartTag, 118
      XMLHttpRequest object, 48
Sys.Debug class, 422
Sys.Preview.Binding class, 264
Sys.Preview.BindingBase.Transformers.Adds, 265
Sys.Preview.BindingBase.Transformers.Compare, 265
Sys.Preview.BindingBase.Transformers.CompareInverted, 265
Sys.Preview.BindingBase.Transformers.Invert, 265
Sys.Preview.BindingBase.Transformers.Multiply, 265
Sys.Preview.BindingBase.Transformers.ToString, 265
Sys.Preview.BindingDirection.In, 268
Sys.Preview.BindingDirection.InOut, 269
Sys.Preview.BindingDirection.Out, 268
Sys.Preview.UI namespace, 241
Sys.Preview.UI.ClickBehavior, 298-301
Sys.Preview.UI.Effects.FadeAnimation object, 370
Sys.Preview.UI.Effects.NumberAnimation class, 373
Sys.Preview.UI.FloatingBehavior, 297, 301-310
Sys.Preview.UI.LayoutBehavior, 297
Sys.Preview.UI.OpacityBehavior, 297
Sys.Preview.UI.Window class, 243
<system.web.extensions> element, 134

T[ Top ]
tabbed interfaces, creating, 216
TabContainer control, 216
tables, HTML, 327-330
TabPanel control, 216
<tagMapping> element, 397
tags
      HTML, 272
      mapping, 398
      <script>, 24
      <setPropertyAction>, 274
target attribute, 275
_target property, 369
TargetControlID property, 185, 194, 210, 212, 304
<template> element, 324
templates
      content, 117
      Control Toolkit, 180
      controls, customizing, 220
      installation, 9
      ListView control, 314
      <ProgressTemplate>, 126
text
      fields, 255-257
            attaching calendars to, 208
      hyperlinks, 250
      localization, 166
text/xml-script type, 272
TextBox controls, Autocomplete behavior, 201-208
TextBoxMask extender, 227
TextBoxMaskBehavior class, 223
TextBoxMaskBehavior.js file, 221, 223
TextBoxMaskDesigner.cs file, 221
TextBoxMaskExtender.cs files, 221
throwing exceptions, 89
Tick events, 122
Timer control properties, 438
timers, 310, 311
timestamps
      postbacks, triggering, 122
      sessions, 96
toggleCssClass( ) method, 257
toolkits
      Control Toolkit, 6, 177
            animation framework, 185
            applying, 181-184
            DragPanel extender, 193
            installation, 177-180
      registering, 181
tools, 109
      ASP.NET Configuration Tool, 146
      ASP.NET Web Application Administration Tool, 145
      debugging, 413
            ASP.NET AJAX, 419-424
            Firebug, 415
            Visual Studio 2005, 416-421
            Web Development Helper, 416
      patch utility, 228
toString( ) method, 38
      adding, 78
transformers, 265
      built-in, 266-268
      customization, 269-271
transforming web service results, 350-358
trees, XML, 57
triggers
      animation, 187
      postbacks, 121, 122
      properties, 437
      types of triggers, 122
troubleshooting
      bookmarks
            back/forward buttons, 384-388
            Futures release, 388-395
      code, 382
typeof operator, 47
types
      animation, 187
      base, 70
      custom, returning, 331
      of triggers, 122
typeValidator, 281

U[ Top ]
Uniform Resource Locators (see URLs)
Update( ) method, 123
UpdateHistory control, 384
UpdatePanel control, 116, 385
      properties, 437
      regions, 116-131
UpdateProgress control properties, 437
updating
      bridge files, 355
      sections, 117-121
            displaying wait screens, 126-128
            managing asynchronous requests, 128-131
            programmatically at timed intervals, 123-126
            at timed intervals, 122-124
uploading patches, 237
url attributes, 277
URLs (Uniform Resource Locators), JavaScript, 25
useGet attribute, 278
user names, profiles, 139
userContext parameter, 135
UserData property, 134

V[ Top ]
validation
      customization, 287-288
      data, 280-296
      groups, 291-294
      programmatic, 288-291
validators, 280
value attribute, 275
values, onreadystatechange property, 49
variables
      custom functions, writing, 33
      dateformat, 156
      daynames, 156
      JavaScript, 26
VerticalSide property, 200
viewing
      custom data sources, 334
      wait screens, 126-128
views, Design, 118
Virtual Earth, 3
visibilityMode, 287
Visual Studio 2005, 5
      debugging, 416-421
      installation, 7
Visual Studio Integration (VSI), 178
Visual Web Developer Express Edition installation, 7
VSI (Visual Studio Integration), 178

W[ Top ]
wait screens
      canceling, 130
      displaying, 126-128
WCF (Windows Communication Foundation), 88
Web Development Helper, 416
web pages
      Ajax architecture, 3
      animation
            drag-and-drop, 193-195
            framework, 185-190
            programming, 190-193
      ASP.NET, 5
      ASP.NET AJAX
            clients, 83-87
            extensions to existing objects, 70
            OOP features for JavaScript, 71-83
            shortcuts, 67-70
      JavaScript
            arrays, 27
            built-in objects, 32-34
            control structures, 27-31
            DOM methods, 42-43
            methods, 25
            OOP, 34-38
            overview of, 24-25
            page element access, 38-42
            variables, 26
      life cycles of, 14
      popups, generating, 211-214
Web Parts (ASP.NET), 396-401
web services
      complex data, exchanging, 100-105
      error handling, 88-92
      Internet Explorer and, 106-108
      JavaScript, consuming with, 105-114
      ListView control, 321
      Mozilla and, 108-112
      page methods, 93-95
      PHP, 407
      remote, 337
            Amazon, 345-367
            Google, 338-344
            Yahoo!, 358-367
      results, transforming with XSLT, 350-358
      session state, maintaining, 95-101
Web Services Description Language (WSDL), 106
web sites
      Control Toolkit, 178
            applying, 181-184
      globalization, 169-172
      localization, 156
            satellite resources, 159-169
            scripts, 156-159
      profiles, preparing for, 133-135
Web.config file, 133
WebPartManager control, 398
while loops, 31
whitelist approach, 204
window.setInterval( ) method, 122
window.setTimeout( ) method, 122
windows
      modal JavaScript, 243
      opening, 245
Windows Communication Foundation (WCF), 88
Windows Presentation Foundation (WPF), 265
WPF (Windows Presentation Foundation), 265
wrapper classes
      Amazon web service, 347
      Google web service, 341
      Yahoo! web service, 358
writing
      custom functions, 32
      profile data, 137
      profile group data, 142
WSDL (Web Services Description Language), 106

X[ Top ]
XML (Extensible Markup Language)
      trees, 57
      web services, converting, 350
XMLDocument object, 55-60
XMLHttpRequest object, 45-55
      references, 426
xml-script, 4, 271, 273
      animation, fading, 372
      method invocation, 279
      properties, setting, 275
XPath, 358-367
XSL transformation (see XSLT)
XSLT (XSL transformation), transforming web service results with, 350-358
XSS (Cross-Site Scripting), 383

Y[ Top ]
Yahoo! web service, 358-367

Z[ Top ]
zones, Web Parts, 398


Return to Programming ASP.NET AJAX