控件 |
對應的標記 |
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格式