.NET Framework Class Library
HtmlSelect.InnerText Property

Gets or sets the content between the opening and closing tags of the control with automatic conversion of special characters to their equivalent HTML entities. This property is not supported for this control.

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)

Syntax

Visual Basic (Declaration)
Public Overrides Property InnerText As String
Visual Basic (Usage)
Dim instance As HtmlSelect
Dim value As String

value = instance.InnerText

instance.InnerText = value
C#
public override string InnerText { get; set; }
C++
public:
virtual property String^ InnerText {
    String^ get () override;
    void set (String^ value) override;
}
J#
/** @property */
public String get_InnerText ()

/** @property */
public void set_InnerText (String value)
JScript
public override function get InnerText () : String

public override function set InnerText (value : String)

Property Value

The content between the opening and closing tags of the control.
Exceptions

Exception typeCondition

NotSupportedException

An attempt is made to read from or assign a value to this property.

Remarks

Caution noteCaution

Do not read from or assign a value to this property. Otherwise, a System.NotSupportedException exception is thrown. This property is inherited from the HtmlContainerControl class and is not applicable to the HtmlSelect class.

Platforms

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Framework

Supported in: 2.0, 1.1, 1.0
See Also

Tags :


Page view tracker