asp.net中的html标签runat=server时的映射

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表单类标签:

  
formSystem.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
textareaSystem.Web.UI.HtmlControls.HtmlTextArea
selectSystem.Web.UI.HtmlControls.HtmlSelect
optionSystem.Web.UI.WebControls.ListItem
optgroupSystem.Web.UI.HtmlControls.HtmlGenericControl
buttonSystem.Web.UI.HtmlControls.HtmlButton
labelSystem.Web.UI.HtmlControls.HtmlGenericControl
fieldsetSystem.Web.UI.HtmlControls.HtmlGenericControl
legentSystem.Web.UI.HtmlControls.HtmlGenericControl

5、表格类标签:

  
tableSystem.Web.UI.HtmlControls.HtmlTable
trSystem.Web.UI.HtmlControls.HtmlTableRow
td,thSystem.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、关系图
ClassDiagram1

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值