Gets or sets the content found between the opening and closing tags of the specified HTML server control.
[Visual Basic] Public Property InnerHtml As String [C#] public string InnerHtml {get; set;} [C++] public: __property String* get_InnerHtml(); public: __property void set_InnerHtml(String*); [JScript] public function get InnerHtml() : String; public function set InnerHtml(String);
The HTML content between opening and closing tags of an HTML server control.
Exception Type | Condition |
---|---|
HttpException | There is no HTML Server control to get the content from.
-or- There is more than one HTML Server control. -or- The HTML Server control is not a literal control. |
This property does not provide automatic HTML encoding and decoding.
HtmlContainerControl Class | HtmlContainerControl Members | System.Web.UI.HtmlControls Namespace