tailieunhanh - ASP.NET 3.5 for Dummies phần 3

vén trong khoa học viễn tưởng, bạn không thể thoát khỏi hướng dẫn sử dụng dữ liệu đầu vào. Trong một cuộc tấn công, hàng hải tàu vũ trụ trò chuyện thoải mái với máy tính, sử dụng điều khiển giao diện điều khiển và loại góc phần tư phối hợp. | Chapter 5 Handling User Input and Events Jn This Chapter Gathering data and pushing buttons Using drop-down lists and list boxes Presenting multiple choices Sending data with forms ven in science fiction you can t escape manual data input. During an attack spaceship navigators converse comfortably with computers use console controls and type quadrant coordinates. This chapter looks at some key controls forms and events. Some concepts are easier to understand if you know a programming language however there s no reason you can t pick this stuff up while you go along. Accepting Data in a TextBox Control The TextBox control accepts keyboard input. As shown in Figure 5-1 the control appears as depending on the TextMode property a normal text box a password variation or a multiline version. See Chapter 15 for enhancements to the TextBox control such as a prompting effect and masked input. 62 Part I Getting to Know and Visual Web Developer Figure 5-1 The TextBox control in single line password and multiline versions. Creating a regular text box You add an TextBox to your page by dragging it from the Standard group of the Toolbox and dropping it on the page in Design view or Source view. By default a text box accepts one line of text. You can limit the number of characters the user can enter by opening the properties page F4 and setting the MaxLength value. Accepting passwords somewhat securely When you set the TextMode property to Password the text box hides the password from onlookers by substituting asterisks or bullets. In Figure 5-1 the second text box from the top shows the effect in the browser. Capturing text with MultiLine mode When you set the TextMode property to MultiLine generates an HTML Textarea control. As shown in the bottom text box refer to Figure 5-1 you set the number of visible lines with the value of the Rows property. You can t restrict the number of characters the user types into the TextBox control in .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.