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