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;
Returns a reference to the registered client script block, along with the key and script parameters.