CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 122
Figure 6-7. Newly added task in the Active list
As you can see, the task was added to the active list with the TaskId of 7. The TaskId is
an identity field in the table that is simply incremented with each new addition. Now, if
you were to mark the task completed by clicking the Edit link and then checking the
Complete check box followed by the Update link, you would see the contents of the
UpdateProgress control while the update is taking place. Figure 6-8 shows the update in
progress.
CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 123
Figure 6-8. Updating a task to mark it complete
Upon updating the status change, you can switch to the Completed view by toggling
the main drop-down box, and you??™ll see the recently created task marked as completed as
shown in Figure 6-9. Also, you can now delete a task by simply clicking the Delete link.
CHAPTER 6 ?– USING SERVER CONTROLS IN ASP.NET AJAX 124
Figure 6-9. The updated task is now in Completed status.
Let??™s now turn our attention back to the code and look at the data side of this app.
Pages:
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199