Latest web development tutorials

controlli server ASP.NET HTML

controlli server HTML sono tag HTML compreso dal server.


controlli server HTML

ASP.NET elementi di file HTML, l'impostazione predefinita è trattata come testo. Per ottenere questi elementi programmabili, aggiungere l'attributo runat = "server" per l'elemento HTML. Questo attributo indica che l'elemento sarà trattata come un controllo server.

Nota: Tutti i controlli server HTML devono essere posizionati con l'attributo runat = "server" del tag <form> all'interno!

Nota: ASP.NET richiede che tutti gli elementi HTML devono essere correttamente chiusi e correttamente annidati.

HTML 服务器控件 描述
HtmlAnchor 控制 <a> HTML 元素
HtmlButton 控制 <button> HTML 元素
HtmlForm 控制 <form> HTML 元素
HtmlGeneric 控制其他未被具体的 HTML 服务器控件规定的 HTML 元素,比如 <body>、<div>、<span> 等。
HtmlImage 控制 <image> HTML 元素
HtmlInputButton 控制 <input type="button">、<input type="submit"> 和 <input type="reset"> HTML 元素
HtmlInputCheckBox 控制 <input type="checkbox"> HTML 元素
HtmlInputFile 控制 <input type="file"> HTML 元素
HtmlInputHidden 控制 <input type="hidden"> HTML 元素
HtmlInputImage 控制 <input type="image"> HTML 元素
HtmlInputRadioButton 控制 <input type="radio"> HTML 元素
HtmlInputText 控制 <input type="text"> 和 <input type="password"> HTML 元素
HtmlSelect 控制 <select> HTML 元素
HtmlTable 控制 <table> HTML 元素
HtmlTableCell 控制 <td> 和 <th> HTML 元素
HtmlTableRow 控制 <tr> HTML 元素
HtmlTextArea 控制 <textarea> HTML 元素