SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 254 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

NET AJAX Control Toolkit reference application mentioned before has four
great examples showcasing the various types of increment/decrement values that can be
implemented with this extender. The first one is very simple because it just
increments/decrements a number between 1 and 7:
TargetControlID="TextBox1"
Width="120"
RefValues=""
ServiceDownMethod=""
ServiceUpMethod=""
TargetButtonDownID=""
TargetButtonUpID=""
Minimum = "1"
Maximum = "7" />
CHAPTER 8 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 2) 183
Basically, in this code segment, this extender was associated with a TextBox control,
and the Minimum and Maximum properties were set with the lower and upper bound of the
permissible values for the text box. The next sample is similar except that it defines a set
of values for months for the NumericUpDown control to iterate through instead of the
default +/-1 increment/decrement behavior:
TargetControlID="TextBox2"
Width="120" RefValues="January;February; March;April;May;June;
July;August;September;October;November;December"
ServiceDownMethod=""
ServiceUpMethod=""
TargetButtonDownID=""
TargetButtonUpID="" />
Not much notable here other than the 12 months listed in the RefValues property.


Pages:
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266