2017年12月17日 ASP.NET 12个表单元素&&简单控件/复合控件

12个表单元素可以分为三大类

第一类:文本类

<input type = "text" />  //普通文本框

<input type = "password" /> //密码文本框

<input type = "hidden" /> //隐藏域

<textrea></textrea> //可变动文本框

 

第二类:按钮类

<input type = "button" /> //普通按钮

<input type = "reset" /> //重置按钮

//下面这两个可以用来往数据库提交数据
<input type = "submit" /> //提交按钮

<input type = "image"> //图片按钮

第三类:选择类

<input type = "radio" /> //单选按钮

<input type = "checkbox"> //复选按钮

<input type ="file" /> // 选择文件按钮

<select> 
 <opention></opention>  //下拉列表
</select>

 

简单控件

1.Lable // 文字

2.Literal  //直接输出文字,不显示HTML的代码

3.TextBox  TextMode="MultiLine" //变为多行文本框
                TextMode="password" //变为密码框
                TextMode="SingleLine" //变为单行文本框

4.HiddenFiled //隐藏域

5.Button //提交按钮

6.ImageButton //图片提交按钮

复合控件

1.radio radioButton // 单选按钮 
           radioButtonList //多行单选按钮

2.checkbox checkbox //多选按钮
                 checkboxList //多行多选按钮

3.select  option  DropDownList //只能选择一个text
                        ListBox // 可以选择多个text

 

转载于:https://www.cnblogs.com/zJuevers/p/8053019.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值