zoukankan      html  css  js  c++  java
  • WebForm 控件

    简单控件

    Label-被Html编译成<span>

    Literal-什么元素都没有,只会在位置上将Text内容完全展示出来,可以形成js

    TextBox-下面有详细介绍

    Button-就是按钮

    ImageButton-图片按钮

    LinkButton-超链接样式的按钮

    因为程序安装在客户端,所以js执行顺序优先于服务器的执行顺序

    表单元素:
    12个表单元素

    文本类:
    <input type="text" /> - 文本框  
    <input type="password" /> - 密码框  
    <textarea></textarea> - 文本域  
    <input type="hidden" /> - 隐藏域 

    按钮类:
    <input type="button" value="按钮" />
    <input type="submit" value="提交"  />
    <input type="reset"  value="重置" />
    <input type="image" src="" />

    选择类:
    <input type="radio" />
    <input type="checkbox" />

    <select>
    <option></option>
    </select>

    <input type="file" />

    其中上面4个都是用TextBox延伸出来的

    TextBox的属性TextMode选项:

    SingleLine-普通文本框

    MultiLine-文本域

    Password-密码框

    -----------------------------------------------

    复合控件

    RadionButtonList(单选按钮组) 和 DropDownList(下拉列表框)

    一、数据绑定
     DataSource
     DataTextField 

     DataValueField
     DataBind

    二、设置默认选中项
     SelectedIndex
     SelectedValue

    三、取值
     SelectedItem

    四、布局

    css

    CheckBoxList (复选框组)和ListBox(选择框)
    一、数据绑定
     遍历数据集合,ListItem
     
    二、设置默认选中项
     在数据添加的时候进行判断,设置Selected属性
     
    三、取值
     遍历所有的项,判断如果是选中状态那么就把值取出来保存
     
    四、布局

  • 相关阅读:
    golang 中 sync包的 WaitGroup
    Go_20: Golang 中 time 包的使用
    mysql 同步数据到 ElasticSearch 的方案
    mysql 对应 binlog 查看
    python3.6爬虫总结-01
    Golang 之协程详解
    golang私服搭建
    Ubuntu vim设置
    密码校验规则
    golang密码校验
  • 原文地址:https://www.cnblogs.com/hongsen3/p/5965743.html
Copyright © 2011-2022 走看看