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格式

 

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