Latest web development tutorials

kontrol ASP.NET kotak centang

Web Server Controls DNS server web

Definisi dan Penggunaan

kontrol kotak centang kotak display.


milik

属性 描述 .NET
AutoPostBack 规定在 Checked 属性已改变后,是否立即向服务器回传表单。默认是 false。 1.0
CausesValidation 规定点击 Button 控件时是否执行验证。 2.0
Checked 规定是否已选中该复选框。 1.0
InputAttributes 该 CheckBox 控件的 Input 元素所用的属性名和值的集合。 2.0
LabelAttributes 该 CheckBox 控件的 Label 元素所用的属性名和值的集合。 2.0
runat 规定该控件是服务器控件。必须被设置为 "server"。 1.0
Text 与复选框关联的文本标签。 1.0
TextAlign 与复选框关联的文本标签的对齐方式。(right 或 left) 1.0
ValidationGroup 在 CheckBox 控件回发到服务器时要进行验证的控件组。 2.0
OnCheckedChanged 当 Checked 属性被改变时,被执行函数的名称。

Web Control Standard Properti

AccessKey, Attributes, BackColor, BorderColor, BorderStyle, BorderWidth, CssClass, Enabled, Font, EnableTheming, ForeColor, Height, IsEnabled, SkinID, Style, TabIndex, ToolTip, Width

Untuk keterangan lengkap, kunjungi Web Control Standard Atribut .

Kontrol Standard Properti

AppRelativeTemplateSourceDirectory, BindingContainer, ClientID, Controls, EnableTheming, EnableViewState, ID, NamingContainer, Page, Parent, Site, TemplateControl, TemplateSourceDirectory, UniqueID, Visible

Untuk keterangan lengkap, buka Kontrol Atribut Standard .


contoh

kotak centang
Dalam contoh ini, kita mendeklarasikan dua kontrol TextBox dan kontrol kotak centang di file .aspx. Kami kemudian membuat event handler untuk event CheckedChanged, menyalin isi dari kotak teks berisi telepon rumah pekerjaan telepon berisi kotak teks.


Web Server Controls DNS server web