FreeTextBox 3.2 Documentation
ClientScriptProxy Class
This is a proxy object for the Page.ClientScript and MS Ajax ScriptManager object that can operate when MS Ajax is not present. Because MS Ajax may not be available accessing the methods directly is not possible and we are required to indirectly reference client script methods through this class. This class should be invoked at the Control's start up and be used to replace all calls Page.ClientScript. Scriptmanager calls are made through Reflection
Declaration Syntax
C# Visual Basic Visual C++
                  public class ClientScriptProxy
                  Public Class ClientScriptProxy
                  public ref class ClientScriptProxy
All Members Constructors Methods Properties

Icon Member Description
No public constructor - use ClientScriptProxy.Current to get an instance to ensure you once have one instance per page active.

Current instance of this class which should always be used to access this object. There are no public constructors to ensure the reference is used as a Singleton to further ensure that all scripts are written to the same clientscript manager.

Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Serves as a hash function for a particular type.
(Inherited from Object.)
Gets the Type of the current instance.
(Inherited from Object.)
GetWebResourceUrl(Control, Type, String)
Returns a WebResource URL for non script resources

Checks to see if MS Ajax is registered with the current Web application. Note: Method is static so it can be directly accessed from anywhere. If you use the IsMsAjax property to check the value this method fires only once per application.

Checks to see if a script manager is on the page

Creates a shallow copy of the current Object.
(Inherited from Object.)
RegisterClientScriptBlock(Control, Type, String, String, Boolean)
Registers a client script block in the page.

RegisterClientScriptInclude(Control, Type, String, String)
Registers a script include tag into the page for an external script url

RegisterClientScriptResource(Control, Type, String)
Returns a WebResource or ScriptResource URL for script resources that are to be embedded as script includes.

RegisterHiddenField(Control, String, String)
Injects a hidden field into the page

RegisterStartupScript(Control, Type, String, String, Boolean)
Registers a startup code snippet that gets placed at the bottom of the page

Returns a String that represents the current Object.
(Inherited from Object.)
Inheritance Hierarchy

Assembly: FreeTextBox (Module: FreeTextBox) Version: