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.

 

 

 

 

 

 

 

AddScriptProperty Method (name, script)

Adds the specified property, and associates the property with the specified script.

Syntax

CSharp

public void AddScriptProperty (
	string name,
	string script
)

VisualBasic

Public Sub AddScriptProperty ( _
	name As String, _
	script As String _
)

ManagedCPlusPlus

public:
void AddScriptProperty (
	String^ name, 
	String^ script
)

JSharp

public void AddScriptProperty (
	String name,
	String script
)

Parameters

name (String)

The name of the property.

script (String)

The script that is rendered to the browser.

Remarks

Use the AddScriptProperty(String, String) method to render script that is not serialized to the browser.

Exceptions

ExceptionCondition
ArgumentException

script is null or an empty string ("").

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