The topics that follow show you how to use some of the common server c dịch - The topics that follow show you how to use some of the common server c Việt làm thế nào để nói

The topics that follow show you how

The topics that follow show you how to use some of the common server controls. For the most part, it’s just a matter of dragging a control onto a form and using the Properties window to set the Appearance and Behavior properties (or attributes) that make the control work the way you want it to.
How to use labels and text boxes
Figure 6-4 presents the attributes that you need for working with labels and text boxes. For both of these controls, the Text attribute specifies the text that’s stored in the control.
For a label, the AssociatedControlID attribute specifies the control that the label identifies. Although you don’t need to set this attribute for all label controls, you do need to use it when you provide an access key for a label, as shown in the last figure. Note that this attribute is converted to a for attribute in the HTML for the label.
For a text box, the TextMode attribute determines whether the box can accept and display one or more lines of text (SingleLine or MultiLine). Then, for a multiline text box, you can use the Rows attribute to specify the number of lines that are shown in the text box and the Wrap attribute to specify whether the lines are automatically wrapped when they exceed the width of the box.
For both single and multiline text boxes, you can use the MaxLength attri-bute to specify the maximum number of characters that the user can enter into the box. You can also use the Columns attribute to specify the width of the box in characters. Although you can also use CSS to set the appearance of a text box, including its width, please note that ASP.NET generates an HTML textarea element for a multiline text box, not an input element
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
The topics that follow show you how to use some of the common server controls. For the most part, it’s just a matter of dragging a control onto a form and using the Properties window to set the Appearance and Behavior properties (or attributes) that make the control work the way you want it to.How to use labels and text boxesFigure 6-4 presents the attributes that you need for working with labels and text boxes. For both of these controls, the Text attribute specifies the text that’s stored in the control.For a label, the AssociatedControlID attribute specifies the control that the label identifies. Although you don’t need to set this attribute for all label controls, you do need to use it when you provide an access key for a label, as shown in the last figure. Note that this attribute is converted to a for attribute in the HTML for the label.For a text box, the TextMode attribute determines whether the box can accept and display one or more lines of text (SingleLine or MultiLine). Then, for a multiline text box, you can use the Rows attribute to specify the number of lines that are shown in the text box and the Wrap attribute to specify whether the lines are automatically wrapped when they exceed the width of the box.For both single and multiline text boxes, you can use the MaxLength attri-bute to specify the maximum number of characters that the user can enter into the box. You can also use the Columns attribute to specify the width of the box in characters. Although you can also use CSS to set the appearance of a text box, including its width, please note that ASP.NET generates an HTML textarea element for a multiline text box, not an input element
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Các chủ đề tiếp theo chỉ cho bạn cách sử dụng một số các điều khiển máy chủ phổ biến. Đối với hầu hết các phần, nó chỉ là một vấn đề của cách kéo một điều khiển vào một hình thức và cách sử dụng cửa sổ Properties để thiết lập các Appearance và hành vi tính (hoặc các thuộc tính) mà làm cho việc kiểm soát công việc theo cách bạn muốn nó.
Làm thế nào để sử dụng nhãn và văn bản hộp
Hình 6-4 trình bày các thuộc tính mà bạn cần để làm việc với các nhãn và hộp văn bản. Đối với cả hai điều khiển, các thuộc tính văn bản quy định cụ thể các văn bản được lưu trữ trong điều khiển.
Đối với một nhãn, các thuộc tính AssociatedControlID quy định cụ thể điều khiển sẽ xác định nhãn. Mặc dù bạn không cần phải thiết lập thuộc tính này cho tất cả các điều khiển nhãn, bạn không cần phải sử dụng nó khi bạn cung cấp một khoá truy cập cho một nhãn hiệu, như thể hiện trong con số cuối cùng. Lưu ý rằng thuộc tính này được chuyển đổi thành một cho thuộc tính trong HTML cho nhãn hiệu này.
Đối với một hộp văn bản, các thuộc tính TextMode xác định xem hộp có thể chấp nhận và hiển thị một hoặc nhiều dòng văn bản (SingleLine hoặc nhiều dòng). Sau đó, cho một hộp văn bản nhiều dòng, bạn có thể sử dụng các thuộc tính Rows để xác định số lượng các dòng được hiển thị trong hộp văn bản và Bọc thuộc tính để xác định xem các dòng được tự động quấn khi họ vượt quá chiều rộng của hộp.
Đối với cả hai hộp văn bản duy nhất và nhiều dòng, bạn có thể sử dụng các MAXLENGTH attri-tả Dinh dưỡng để xác định số ký tự tối đa mà người dùng có thể nhập vào hộp. Bạn cũng có thể sử dụng các cột thuộc tính để xác định chiều rộng của hộp trong nhân vật. Mặc dù bạn cũng có thể sử dụng CSS để thiết lập sự xuất hiện của một hộp văn bản, bao gồm cả chiều rộng của nó, xin vui lòng lưu ý rằng ASP.NET tạo ra một phần tử HTML textarea cho một hộp văn bản nhiều dòng, không phải là một yếu tố đầu vào
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: