asp.net中的html標籤runat=server時的映射

來源:互聯網
上載者:User

asp.net中的html控制項runat=server時的映射

1、標準xhtml標籤:http://blog.csdn.net/TangZhongxin/archive/2009/07/31/4398487.aspx

2、絕大多數標籤都映射到“System.Web.UI.HtmlControls.HtmlGenericControl”,它們的共同特性是“資訊唯讀,僅供顯示的標記”:
div,span,p,h1,h2,h3,h4,h5,h6,ul,li,dl,dt,dd,
abbr,acronym,address,bdo,blockquote,pre,br,q,ins,del,sub,sup,hr,map,area,
optgroup,label,fieldset,legent,
em,strong,dfn,code,samp,kbd,var,cite,
tt,i,b,big,small,
colgroup,col,caption,thead,tbody,tfoot,
param,
title,base,link,meta,style,

3、連結和映像、對象類標籤
標籤a,映射到 System.Web.UI.HtmlControls.HtmlAnchor ;
標籤img,映射到 System.Web.UI.HtmlControls.HtmlImage ;
標籤object,不能映射;
標籤param,映射到 System.Web.UI.HtmlControls.HtmlGenericControl;

4、form表單類標籤:

   
form System.Web.UI.HtmlControls.HtmlForm
input type="text" System.Web.UI.HtmlControls.HtmlInputText
input type="button" System.Web.UI.HtmlControls.HtmlInputButton
input type="checkbox" System.Web.UI.HtmlControls.HtmlInputCheckBox
input type="file" System.Web.UI.HtmlControls.HtmlInputFile
input type="hidden" System.Web.UI.HtmlControls.HtmlInputHidden
input type="image" System.Web.UI.HtmlControls.HtmlInputImage
input type="password" System.Web.UI.HtmlControls.HtmlInputPassword
input type="radio" System.Web.UI.HtmlControls.HtmlInputRadioButton
input type="reset" System.Web.UI.HtmlControls.HtmlInputReset
input type="submit" System.Web.UI.HtmlControls.HtmlInputSubmit
textarea System.Web.UI.HtmlControls.HtmlTextArea
select System.Web.UI.HtmlControls.HtmlSelect
option System.Web.UI.WebControls.ListItem
optgroup System.Web.UI.HtmlControls.HtmlGenericControl
button System.Web.UI.HtmlControls.HtmlButton
label System.Web.UI.HtmlControls.HtmlGenericControl
fieldset System.Web.UI.HtmlControls.HtmlGenericControl
legent System.Web.UI.HtmlControls.HtmlGenericControl

5、表格類標籤:

   
table System.Web.UI.HtmlControls.HtmlTable
tr System.Web.UI.HtmlControls.HtmlTableRow
td,th System.Web.UI.HtmlControls.HtmlTableCell
colgroup,col
caption
thead,tbody,tfoot
System.Web.UI.HtmlControls.HtmlGenericControl

6、特殊:
head,System.Web.UI.Page的一個屬性
title,base,link,meta,style,

7、關係圖

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.