One last note to mention about the NoBot extender is that it must be tested thoroughly
before deployed. It may not be consistent in all environments and may falsely
identify legitimate users as bots. When developing the Challenge/Response mechanism
or tweaking the other parameters, be sure to test your application for the legitimacy of
the NoBot extender results.
NumericUpDown Extender
The NumericUpDown extender can easily be associated with any TextBox control and allow
the user to increment or decrement numeric values as well as custom-defined values
defined at design time, such as the days in a week or months in a year. By default, this
extender assumes +/- 1 for incrementing or decrementing values, but you can define a
set of values for the NumericUpDown extender to enumerate through by using the RefValues
property. Table 8-9 lists the main properties of this extender.
CHAPTER 8 ?– USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 2) 182
Table 8-9. NumericUpDown Extender Properties
Property Name Description
Minimum Smallest value allowed in the target TextBox
Maximum Largest value allowed in the target TextBox
RefValues List of semicolon-delimited values used as a data source for the
NumericUpDown extender
ServiceDownMethod Web method used to retrieve the next value when the Down button is
clicked
ServiceUpMethod Web method used to retrieve the next value when the Up button is clicked
ServiceDownPath Path of the web service used to retrieve the next value when the Down
button is clicked
ServiceUpPath Path of the web service used to retrieve the next value when the Up button is
clicked
Step Numeric steps used for incrementing/decrementing values (default is 1)
Tag Custom parameter to be passed to the web service for the data
TargetButtonDownID ID of the down Button control
TargetButtonUpID ID of the up Button control
TargetControlID ID of the target TextBox control
Width Width of the target TextBox combined with the Up/Down buttons
The ASP.
Pages:
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265