Adds the specified property, and associates that property with the specified element.
Syntax
CSharp
public void AddComponentProperty (
string name,
string componentID
)
VisualBasic
Public Sub AddComponentProperty ( _
name As String, _
componentID As String _
)
ManagedCPlusPlus
public:
void AddComponentProperty (
String^ name,
String^ componentID
)
JSharp
public void AddComponentProperty (
String name,
String componentID
)
Parameters
- name (String)
The name of the property.
- componentID (String)
The ID of the target component.
Remarks
This method adds the specified property to the internal dictionary of properties that are used by the control and converted to client script by the GetScript() method.
Exceptions
| Exception | Condition |
|---|
| ArgumentException | name or componentID is null or an empty string (""). |
Assembly: System.Web.Extensions (Module: System.Web.Extensions)