NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Page.RegisterClientScriptBlock

Allows controls to keep duplicate blocks of client-side script code from being sent to the client. Any script blocks with the same key parameter value are considered duplicates.

[Visual Basic]
Overridable Public Function RegisterClientScriptBlock( _
   ByVal key As String, _
   ByVal script As String _
) As Boolean
[C#]
public virtual bool RegisterClientScriptBlock(
   string key,
   string script
);
[C++]
public: virtual bool RegisterClientScriptBlock(
   String* key,
   String* script
);
[JScript]
public function RegisterClientScriptBlock(
   key : String,
   script : String
) : Boolean;

Parameters

key
[To be supplied.]
script
Content of script that will be sent to the client.

Return Value

Returns a reference to the registered client script block, along with the key and script parameters.

See Also

Page Class | Page Members | System.Web.UI Namespace