标题 | asp.net入门教程:html服务器控件 |
范文 | 前面简单介绍完了asp.net 2.0之后,我们简单介绍一些html服务器控件。上一篇文章:asp.net入门教程:asp.net 2.0导航 html 服务器控件是服务器可理解的 html 标签。 html 服务器控件 asp.net 文件中的 html 元素默认作为文本进行处理。为了使这些元素可编程化,需要向 html 元素添加 runat=server 属性。该属性指示该元素应作为服务器控件进行处理。 注释:所有 html 服务器控件必须位于带有 runat=server 属性的 标签内! 注释:asp.net 要求所有 html 元素必须正确关闭和嵌套。 html 服务器控件描述 htmlanchor控制 <a> html 元素 htmlbutton控制 <button> html 元素 htmlform控制 <form> html 元素 htmlgeneric控制其他未被具体的 html 服务器控件规定的 html 元素,比如 <body>, <div>, <span> 等等。 htmlimage控制 <image> html 元素 htmlinputbutton控制 <input type=button> 、<input type=submit> 以及 <input type=reset> html 元素 htmlinputcheckbox控制 <input type=checkbox> html 元素 htmlinputfile控制 <input type=file> html 元素 htmlinputhidden控制 <input type=hidden> html 元素 htmlinputimage控制 <input type=image> html 元素 htmlinputradiobutton控制 <input type=radio> html 元素 htmlinputtext控制 <input type=text> 和 <input type=password> html 元素 htmlselect控制 <select> html 元素 htmltable控制 <table> html 元素 htmltablecell控制 <td> 和 <th> html 元素 htmltablerow控制 <tr> html 元素 htmltextarea控制 <textarea> html 元素 |
随便看 |
|
在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。