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 240 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"

Client-side JavaScript can provide quick feedback to the user without
a round-trip to the server, whereas server-side validation has the added benefit of having
access to business logic and/or data access on the server. However, ensuring data
integrity and validation is best done when the range of user input is limited based on
expected data. Much like the FilteredTextBox extender, the MaskedEdit extender is
designed to enforce validation on user input by using a ???mask??? and thus restricting the
range of possible values entered into a TextBox control. The MaskedEdit is a little more
sophisticated than the FilteredTextBox extender in that it offers visual guidance to the
user to enter the correct data and supports more complex rules through the use of
MaskedEditValidator controls. Table 8-5 lists the properties of this extender.
CHAPTER 8 ?–  USING THE ASP.NET AJAX CONTROL TOOLKIT (PART 2) 174
Table 8-5.Main Properties of the MaskedEdit Extender
Property Name Description
AcceptAMPM Boolean value indicating whether or not to display AM/PM for time
values.
AcceptNegative Whether or not negative values are allowed in the target TextBox.


Pages:
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252