⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aspnet_refhtmlcontrols.asp@output=print

📁 W3Schools tutorial..web designing
💻 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=&quot;server&quot; 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 &lt;form&gt; tag with the 
runat=&quot;server&quot; 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 &lt;a&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlbutton.asp">HtmlButton</a></td>
    <td valign="top">Controls a &lt;button&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlform.asp">HtmlForm</a></td>
    <td valign="top">Controls a &lt;form&gt; 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 &lt;body&gt;, &lt;div&gt;, &lt;span&gt;, etc.</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlimage.asp">HtmlImage</a></td>
    <td valign="top">Controls an &lt;image&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputbutton.asp">HtmlInputButton</a></td>
    <td valign="top">Controls &lt;input type=&quot;button&quot;&gt;, &lt;input 
    type=&quot;submit&quot;&gt;, and &lt;input type=&quot;reset&quot;&gt; HTML elements</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputcheckbox.asp">HtmlInputCheckBox</a></td>
    <td valign="top">Controls an &lt;input type=&quot;checkbox&quot;&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputfile.asp">HtmlInputFile</a></td>
    <td valign="top">Controls an &lt;input type=&quot;file&quot;&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputhidden.asp">HtmlInputHidden</a></td>
    <td valign="top">Controls an &lt;input type=&quot;hidden&quot;&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputimage.asp">HtmlInputImage</a></td>
    <td valign="top">Controls an &lt;input type=&quot;image&quot;&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputradiobutton.asp">HtmlInputRadioButton</a></td>
    <td valign="top">Controls an &lt;input type=&quot;radio&quot;&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlinputtext.asp">HtmlInputText</a></td>
    <td valign="top">Controls &lt;input type=&quot;text&quot;&gt; and &lt;input 
    type=&quot;password&quot;&gt; HTML elements</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmlselect.asp">HtmlSelect</a></td>
    <td valign="top">Controls a &lt;select&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmltable.asp">HtmlTable</a></td>
    <td valign="top">Controls a &lt;table&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmltablecell.asp">HtmlTableCell</a></td>
    <td valign="top">Controls &lt;td&gt;and &lt;th&gt; HTML elements</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmltablerow.asp">HtmlTableRow</a></td>
    <td valign="top">Controls a &lt;tr&gt; HTML element</td>
  </tr>
  <tr>
    <td valign="top"><a href="control_htmltextarea.asp">HtmlTextArea</a></td>
    <td valign="top">Controls a &lt;textarea&gt; 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 + -