TAILIEUCHUNG - Professional ASP.NET 1.0 Special Edition- P40
Professional Special Edition- P40:Those of us who are Microsoft developers can't help but notice that .NET has received a fair amount of visibility over the last year or so. This is quite surprising considering that for most of this period, .NET has been in its early infancy and beta versions. I can't remember any unreleased product that has caused this much interest among developers. And that's really an important point, because ignoring all the hype and press, .NET really is a product for developers, providing a great foundation for building all types of applications | go do Alternatively and particularly on the Openwave Simulator a select list may be generated with an option element allowing the command to be called in much the same way as we saw for mobile Link . Note that the imageUrl property which determines an image to display on a device if that device supports graphics works in the same way as the equivalent property of the mobile Image control with device-specific rendering supported in the same way. Example Usage The following code contains some text that changes when the Press button is pressed mobile Form runat server id first Title First mobile Label runat server id result Button not pressed. mobile Label mobile Command runat server id button1 Text Press SoftkeyLabel Press OnClick button1_OnClick mobile Form script runat server Language VB Sub button1_OnClick sender As Object e As Button pressed End Sub script The button appears on various devices as follows mobile TextBox This control enables user input. The output in all cases will be a text box although the functionality of the WML rendition of this varies significantly between browsers see below . It is possible to change the type of textbox displayed using the Numeric and Password attributes. If both of these are false we get a plain text box setting Numeric to true gives a number only textbox and setting Password to True renders a password mode text box where asterisks are written to the screen to prevent unwanted reading of passwords. However I personally think that the Password type only causes confusion on mobile devices as it makes the already awkward text input even harder it s easy to lose your place and- to be honest- who s likely to read your password over your shoulder on a tiny LCD screen Attributes Attribute Description MaxLength The maximum number of characters allowed in the text box. Numeric true or false. Whether the text box is numeric. Password true or false. Whether the text box acts in password mode. Size The .
đang nạp các trang xem trước