CodeCarvings.Piczard
RegisterClientScriptBlockInAjaxPostBack(Page,String,String,Boolean) Method
See Also  Send Feedback
CodeCarvings.Piczard.Web.Helpers Namespace > AjaxHelper Class > RegisterClientScriptBlockInAjaxPostBack Method : RegisterClientScriptBlockInAjaxPostBack(Page,String,String,Boolean) Method

page
The page object that is registering the client script block.
scriptName
A unique identifier for the script block.
script
The script.
addScriptTags
true to enclose the script block in <script> and </script> tags; otherwise, false.
Registers a client script block with the ScriptManager control for use with a control that is inside an UpdatePanel control, and then adds the script block to the page.

Syntax

Visual Basic (Declaration)  
Public Overloads Shared Function RegisterClientScriptBlockInAjaxPostBack( _
   ByVal page As Page, _
   ByVal scriptName As String, _
   ByVal script As String, _
   ByVal addScriptTags As Boolean _
) As Boolean
C#  
public static bool RegisterClientScriptBlockInAjaxPostBack( 
   Page page,
   string scriptName,
   string script,
   bool addScriptTags
)

Parameters

page
The page object that is registering the client script block.
scriptName
A unique identifier for the script block.
script
The script.
addScriptTags
true to enclose the script block in <script> and </script> tags; otherwise, false.

Return Value

true if the script has been successfully registered; otherwise, false.
If the current postback is not executed in partial-rendering mode, then this method returns false.

Requirements

Platforms: Windows 8, Windows 7, Windows Vista, Windows XP Professional, Windows 2000 - Windows Server family: 2012, 2008.R2, 2008, 2003, 2000

See Also

©2013 Sergio Turolla. All Rights Reserved.