ClientScriptProxy Class

Free Text Box Controls

FreeTextBox 3.2 Documentation ClientScriptProxy Class
NamespacesFreeTextBoxControls.SupportClientScriptProxy
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
Members
All Members Constructors Methods Properties



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

Current
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.

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

IsMsAjax()()()
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.

IsScriptManagerInAsyncPostBack(Page)
IsScriptManagerOnPage(Page)
Checks to see if a script manager is on the page

MemberwiseClone()()()
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

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

Assembly: FreeTextBox (Module: FreeTextBox) Version: 3.2.0.28068