Prev | Current Page 670 | Next

Rob Cameron and Dale Michalk

"Pro ASP.NET 3.5 Server Controls and AJAX Components"


518 CHAPTER 10 ?–  OTHER SERVER CONTROLS
The other logic in the Render method for the WmlMCTextBoxAdapter class modifies the
format parameter for this method, setting it to *N for unlimited numeric characters or *M for
unlimited any type of characters. These settings come from the WML specification for the
tag. Table 10-16 details the available values for the format setting.
Creating device adapters requires a deep understanding of the nuances of the markup
language. (Either that or a good reference close at hand!)
Table 10-15. WmlMobileTextWriter.RenderTextBox Parameters
Parameter Description
breakAfter Indicates whether a
tag should be rendered after the tag
format Permits application of WML-specific formatting options
generateRandomID Indicates whether the identifier for the control should be encrypted
id Identifier of the associated mobile control
maxLength Stores the maximum length permitted for the string
password Indicates if the data should be masked with the password character *
size Stores the size of the string
title Stores the title for the text box
value Value to initialize the control
Table 10-16. Permitted Settings for the WML Tag format Value
Format Description
A Punctuation or uppercase alphabetic characters.


Pages:
658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682