When you run this page in the browser, you can see the suggested
terms three at a time as you type in the text box (see Figure 7-9).
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 146
Figure 7-9. TextBox in a page suggesting terms
CalendarExtender Control
ASP.NET already provides a great and capable Calendar control. However, it requires postbacks
for many of its operations. The CalendarExtender control in the ASP.NET AJAX
Toolkit enables better overall user experience with its enhanced visual capabilities and
postback-free performance. This control is used in conjunction with a TextBox control
and has four properties as listed in Table 7-5.
Table 7-5. Attribute Properties of the CalendarExtender Control
Property Name Description
CssClass The CSS class used for the CalendarExtender control
Format Format string for the date generated
PopupButtonID The ID of the Button control used to show the CalendarExtender control
(optional)
TargetControlID ID of the corresponding Textbox to be used
CHAPTER 7 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 1) 147
This is a very simple and straightforward control to use.
Pages:
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224