Use Cases to learn about. net WebForms (5)

Source: Internet
Author: User

RadioButton:
RadioButton generates a <input type = radio...> On the page. Its definition is as follows:
<Asp: RadioButton id = "RadioButton1" runat = "server" Text = "Tofu technology station".../>
Or use the code to define:
RadioButton RadioButton1 = new RadioButton ();
For Radio, its main attributes include the following:
Text: displays the Radio when it is displayed externally.
Checked: This attribute should be said to be one of the most important properties of RadioButton. In a Group, the Radio that can be selected can only be
There is one. You can use RadioButton1.Checked to determine whether the current Radio is selected.
Enabled and Visible are some attributes of Radio displayed on the interface. The specific usage is the same as that of Radio.
In WebForms, a control is similar to the RadioButton attribute, Which is CheckBox! CheckBox attributes and RadioButton
The meaning of each attribute is the same. The only difference is that in a Group, only one Radio can be selected at the same time, while in CheckBox
To have multiple selected at the same time!
CheckBox:
The CheckBox generates a <input type = CheckBox...> On the page. Its definition is as follows:
<Asp: CheckBox id = "CheckBox1" runat = "server" Text = "Tofu technology station".../>
Or use the code to define:
CheckBox CheckBox1 = new CheckBox ();
I will not repeat the attributes of the CheckBox. Refer to the above article.
/*
Tofu is made of excellent products
Http://www.asp888.net bean curd technology station
If reprinted, Please retain the complete copyright information
*/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.