🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# ASP.NET Web Forms - Web 服务器控件 Web 服务器控件是服务器可理解的特殊 ASP.NET 标签。 ## Web 服务器控件 就像 HTML 服务器控件,Web 服务器控件也是在服务器上创建的,它们同样需要 runat="server" 属性才能生效。然而,Web 服务器控件没有必要映射任何已存在的 HTML 元素,它们可以表示更复杂的元素。 创建 Web 服务器控件的语法是: ``` <asp:control_name id="some_id" runat="server" /> ``` | Web 服务器控件 | 描述 | | --- | --- | | [AdRotator](control-adrotator.html) | 显示一个图形序列 | | [Button](control-button.html) | 显示下压按钮 | | [Calendar](control-calendar.html) | 显示日历 | | [CalendarDay](control-calendarday.html) | calendar 控件中的一天 | | [CheckBox](control-checkbox.html) | 显示复选框 | | [CheckBoxList](control-checkboxlist.html) | 创建多选的复选框组 | | DataGrid | 显示 grid 中数据源的字段 | | DataList | 通过使用模版显示数据源中的项目 | | [DropDownList](control-dropdownlist.html) | 创建下拉列表 | | [HyperLink](control-hyperlink.html) | 创建超链接 | | [Image](control-image.html) | 显示图像 | | [ImageButton](control-imagebutton.html) | 显示可点击的图像 | | [Label](control-label.html) | 显示可编程的静态内容(使您对其内容应用样式) | | [LinkButton](control-linkbutton.html) | 创建超链接按钮 | | [ListBox](control-listbox.html) | 创建单选或多选的下拉列表 | | [ListItem](control-listitem.html) | 创建列表中的一个项目 | | [Literal](control-literal.html) | 显示可编程的静态内容(无法使您对其内容应用样式) | | [Panel](control-panel.html) | 为其他控件提供容器 | | [PlaceHolder](control-placeholder.html) | 为由代码添加的控件预留空间 | | [RadioButton](control-radiobutton.html) | 创建单选按钮 | | [RadioButtonList](control-radiobuttonlist.html) | 创建单选按钮组 | | [BulletedList](control-bulletedlist.html) | 创建项目符号格式的列表 | | Repeater | 显示绑定到控件的项目的重复列表 | | [Style](control-style.html) | 设置控件的样式 | | [Table](control-table.html) | 创建表格 | | [TableCell](control-tablecell.html) | 创建表格单元格 | | [TableRow](control-tablerow.html) | 创建表格行 | | [TextBox](control-textbox.html) | 创建文本框 | | [Xml](control-xml.html) | 显示 XML 文件或 XSL 转换的结果 |