TAILIEUCHUNG - Microsoft ASP .NET Fast & Easy Web Development phần 3

Kéo một điều khiển TextBox từ hộp công cụ để hình thành và mở cửa sổ Properties của kiểm . Trong cửa sổ Properties, loại txtUserName như ID của điều . Kéo một điều khiển TextBox từ hộp công cụ để hình . Thay đổi thuộc tính ID của điều khiển để . Thay đổi tài sản TextMode sự kiểm soát mật khẩu. | 8. Drag a TextBox control from the Toolbox to the form and open the control s Properties window. 9. In the Properties window type txtUserName as the ID of the control. 10. Drag another TextBox control from the Toolbox to the form. 11. Change the ID property of the control to txtPassword. 12. Change the TextMode property of the control to Password. This change will ensure that when the form is run the control will mask the characters that are typed into it. 13. Drag a Button control from the Toolbox to the form and change its ID and Text properties to btnSubmit and Submit respectively. íì 14. To display a message to users when they enter an incorrect user name or password drag another Label control onto the form from the Toolbox. 15. Clear the Text property of the label and change the value of the ID property to lblMessage. Note When you add a Label control to the form and clear the text that is displayed in the label the form displays the name of the label in parentheses so that you can place the label accurately at design time. The form that you have just designed accepts the user name and password from a user. Next you ll learn about the steps to respond to user interactions with the form. Designing Forms The Toolbox in Visual Studio .NET is handy for designing Web forms. When using the Toolbox all you need to do is drag controls and arrange them on a Web form. You design a form in the Design view. Visual Studio .NET provides two layouts for a form in the Design view GridLayout and FlowLayout. The interface of your application can depend upon the layout that was used to design the application s forms. In this section you will examine the difference between the GridLayout and the FlowLayout of a form and how you can design a form by dragging controls to it from the Toolbox. Selecting a Layout for a Form You can use GridLayout or FlowLayout to design a form. Following are brief descriptions of these layouts. GridLayout. GridLayout uses absolute coordinates to .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.