表单元素(12个):
文本类:
<input type="text" />//普通的文本框 <input type="password" />//密码框 <textarea><textarea />//可多行编辑的文本域 <input type="hidden" />//隐藏域
选择类:
<input type="radio" id="i" /><label for="i">aaaa<label />//单选框,id相同的互斥,label内显示单选框的内容,for点击文字也可选中 <input type="checkbox" />//复选框 <select><option>aaa<option /><select />//下拉菜单,每一个option都是一行 <input type="file" />//文件选择
按钮类:
<input type="button" value="aaaa"/>//纯按钮,value显示按钮的文本 <input type="submit" />//提交按钮 <input type="image" />//图片按钮 <input type="reset" />//清空按钮
服务器控件:
--简单控件:
<asp:Label ID="Label1" runat="server" Text="Label" CssClass="aaa"></asp:Label> <asp:Literal ID="Literal1" runat="server" Text="bbbb"></asp:Literal> <asp:Button ID="Button1" runat="server" Text="Button" />//对应submit <asp:ImageButton ID="ImageButton1" runat="server" />//对应image <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>//对应text <asp:HiddenField ID="HiddenField1" runat="server" />//对应hidden
--复合控件:
radio radioButton radioButtonList 单选
checkbox checkbox checkboxList 多选
select option DropDownList 单选 ListBox 多选