zoukankan      html  css  js  c++  java
  • 表单元素,服务器控件

    表单元素(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 多选

  • 相关阅读:
    selenium-web自动化,常用api
    jmeter利用bean shell加密解密方法
    http请求属性说明(基础篇)
    移动端候选人面试要点
    CssSelector定位详解
    下载zip文件
    BeanShell生成随机中文字符
    BeanShell生成随机字符
    CentOS 7.2安装Oracle19C
    Centos7.4部署onlyoffice文档在线编辑服务器
  • 原文地址:https://www.cnblogs.com/yangchuanqi/p/8064633.html
Copyright © 2011-2022 走看看