📄 aspnet_refhtmlcontrols.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ASP.NET HTML Server Controls</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>HTML Server Controls</h1>
<a href="aspnet_navigation.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" /></a>
<a href="aspnet_refwebcontrols.asp"><img alt="next" border="0" src="../images/btn_next.gif" /></a>
<hr />
<p class="intro">HTML server controls are HTML tags understood by the server.</p>
<hr />
<h2>HTML Server Controls</h2>
<p>HTML elements in ASP.NET files are, by default, treated as text. To make
these elements programmable, add a runat="server" attribute to the
HTML element. This
attribute indicates that the element should be treated as a server
control.</p>
<p><b>Note:</b> All HTML server controls must be within a <form> tag with the
runat="server" attribute!</p>
<p><b>Note:</b> ASP.NET requires that all HTML elements must be properly closed
and properly nested.</p>
<table class="ex" border="1" width="100%">
<tr>
<th width="30%" align="left">HTML Server Control</th>
<th width="70%" align="left">Description</th>
</tr>
<tr>
<td valign="top"><a href="control_htmlanchor.asp">HtmlAnchor</a></td>
<td valign="top">Controls an <a> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlbutton.asp">HtmlButton</a></td>
<td valign="top">Controls a <button> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlform.asp">HtmlForm</a></td>
<td valign="top">Controls a <form> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlgeneric.asp">HtmlGeneric</a></td>
<td valign="top">Controls other HTML element not specified by a specific
HTML server control, like <body>, <div>, <span>, etc.</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlimage.asp">HtmlImage</a></td>
<td valign="top">Controls an <image> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputbutton.asp">HtmlInputButton</a></td>
<td valign="top">Controls <input type="button">, <input
type="submit">, and <input type="reset"> HTML elements</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputcheckbox.asp">HtmlInputCheckBox</a></td>
<td valign="top">Controls an <input type="checkbox"> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputfile.asp">HtmlInputFile</a></td>
<td valign="top">Controls an <input type="file"> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputhidden.asp">HtmlInputHidden</a></td>
<td valign="top">Controls an <input type="hidden"> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputimage.asp">HtmlInputImage</a></td>
<td valign="top">Controls an <input type="image"> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputradiobutton.asp">HtmlInputRadioButton</a></td>
<td valign="top">Controls an <input type="radio"> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlinputtext.asp">HtmlInputText</a></td>
<td valign="top">Controls <input type="text"> and <input
type="password"> HTML elements</td>
</tr>
<tr>
<td valign="top"><a href="control_htmlselect.asp">HtmlSelect</a></td>
<td valign="top">Controls a <select> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmltable.asp">HtmlTable</a></td>
<td valign="top">Controls a <table> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmltablecell.asp">HtmlTableCell</a></td>
<td valign="top">Controls <td>and <th> HTML elements</td>
</tr>
<tr>
<td valign="top"><a href="control_htmltablerow.asp">HtmlTableRow</a></td>
<td valign="top">Controls a <tr> HTML element</td>
</tr>
<tr>
<td valign="top"><a href="control_htmltextarea.asp">HtmlTextArea</a></td>
<td valign="top">Controls a <textarea> HTML element</td>
</tr>
</table>
<br />
<hr />
<a href="aspnet_navigation.asp"><img alt="previous" border="0" src="../images/btn_previous.gif" /></a>
<a href="aspnet_refwebcontrols.asp"><img alt="next" border="0" src="../images/btn_next.gif" width="100" height="20" /></a>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -