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.

 

 

 

 

 

 

 

AddElementProperty Method (name, elementID)

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

ExceptionCondition
ArgumentException

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

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