Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

AddComponentProperty Method (name, componentID)

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

ExceptionCondition
ArgumentException

name or componentID is null or an empty string ("").

Assembly: System.Web.Extensions (Module: System.Web.Extensions)