ASP.NET 的几种控件的简单用法

控件

对应的标记

HtmlAnchor

<a>

HtmlButton

<button>

HtmlSelect

<select>

HtmlTextArea

<textarea>

HtmlInputButton

<input type="button">

HtmlInputCheckBox

<input type="check">

HtmlInputRadioButton

<input type="radio">

HtmlInputText

<input type="text"> 和 <input type="password">

HtmlInputHidden

<input type="hidden">

HtmlInputImage

<input type="image">

HtmlInputFile

<input type="file">

HtmlForm

<form>

HtmlImage

<img>

HtmlTable

<table>

HtmlTableRow

<tr>

HtmlTableCell

<td>

HtmlGenericControl

任何其它没有对应控件的标记,如 <span>、<div> 等

 

今天学习了一些控件的用法

与append的用法

每个用于服务器端的标签必须带有

runat="server" 。

这一属性 代表是服务器端的标签 而不是客户端

<asp:>代表系统会自动将语句转化为html格式

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章