.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

SupportClientScriptsExtensions.SetClientScript Method

Name Parameters Description
SetClientScript(ISupportClientScripts, String) static action, script Assigns a JavaScript code to the current Action. This code is executed in a browser when a user clicks the Action.
SetClientScript(ISupportClientScripts, String, Boolean) static action, script, processOnServer Assigns a JavaScript code to the current Action. This code is executed in a browser when a user clicks the Action.