Note that these are two distinct mechanisms via which UpdatePanel implements
updates. Other than that, it??™s very similar to the previous UpdatePanel control in structure,
and the
tag only has the ShowInsertButton property defined because
the user can only insert a task in this pane.
The other major portion of the markup for this page defines the ObjectDataSource
control, which handles the data for this page. But before getting into discussions about
the data side of this application, let??™s try to use the app and see it in action. Figure 6-6
shows the main page after the Completed status was selected in the drop-down control
at the top of the page.
CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 121
Figure 6-6. Viewing completed tasks
Toggling the status between Completed and Active changes the data of the GridView
almost instantaneously without any page refresh. Now, let??™s add a new task called
???Become an AJAX expert??? and click Insert on the lower UpdatePanel of the page. You??™ll
see the task being immediately added to the Active list as shown in Figure 6-7.
Pages:
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198