The most common controls with a closing tag are the <form>, <table>, <tr>, <td>, <a>, and <span> elements.
The InnerText and InnerHtml properties allow you to manipulate the content between the opening and closing tags of HtmlContainerControl-derived controls.
For a list of initial property values for an instance of HtmlContainerControl, see the HtmlContainerControl constructor.
A new instance of this class is not created directly.
Caution: |
|---|
If you use the
InnerHtml property to specify the text between the opening and closing tags of an HTML server control, the text is not HTML encoded. This makes it possible to embed script within HTML tags in the text. When using the InnerHtml property, be sure to validate the value to reduce security vulnerabilities. Otherwise, consider using the InnerText property instead.
|