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
Assembly: System.Web.Extensions (Module: System.Web.Extensions)