Namespace Westwind.Web.Controls

This topic tree describes the Westwind.Web.Controls namespace.

  ICallbackMethodProcessor that defines the Callback operations for handling method callbacks on the server. This interface serves as an abstraction for potentially different implementations that use XML instead of JSON.
  wwScriptCompressionModule Module that handles compression of JavaScript resources using GZip and script optimization that strips comments and extra whitespace. This module should be used in conjunction with ClientScriptProxy.RegisterClientScriptResource which sets up the proper URL formatting required for this module to handle requests. Format is: wwScriptCompression.ashx?r=ResourceName&t=FullAssemblyName The type parameter can be omitted if the resource lives in
  JsonCallbackMethodProcessor This is the core implementation of the JSON callback method handler that picks up POST data from the request and uses it to call the actual callback method on the specified object and return the results back as JSON. This processor is generic and can be used easily from anywhere that needs to feed back JSON data from a method callback, simply calling the ProcessCallbackMethod() with an object that contains methods that are marked up with the
  JavaScriptMinifier JavaScript minifier strips white space and comments from JavaScript code. Based on Douglas Crockford's JavaScript Minifier with some modification to support string and StreamReader conversions. This class can minify strings in memory or files and entire directories of disk files. The MinifyDirectory() method can be used in the build process for VS or can easily be used at application startup to automatically create minified script files
  JSONSerializer More text is a basic JSON serializer and deserializer that deals with standard .NET types. Unlike the MS Ajax JSONSerializer parser this parser support serialization and deserialization without explicit type markup in the JSON resulting in a simpler two-way model. The inbound model for complex types is based on Reflection parsing of properties.
  ControlResources is used as to consolidate access to resources
  ClientScriptProxy This is a proxy object for the Page.ClientScript and MS Ajax ScriptManager object that can operate when MS Ajax when present otherwise falling back to Page.ClientScript. 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.
  CallbackMethodProcessorHelper This class provides helper services to the CallbackProcessor classes with the generic services that deal with method execution and parsing POST parameters which should be independent of the specific implementation (JSON, XML etc.). Extracted here so other Callback Processors can be created more easily later on, using other request formats (Xml etc.)
  CallbackException Special return type used to indicate that an exception was fired on the server. This object is JSON serialized and the client can check for Result.IsCallbackError to see if a a failure occured on the server.
  CallbackMethodAttribute Marker Attribute to be used on Callback methods. Signals parser that the method is allowed to be executed remotely
  ScriptContainer that provides script embedding functionality to ASP.NET pages. Features include the ability to use ResolveUrl style src urls to place script includes inline (to the control), in the Header or using standard ASP.NET ClientScript or ScriptManager. The control can also optimize scripts if a .min.js script file is available by using the AllowMinScript property on the script. The purpose of this control is to provide Intellisense compatible
  ScriptVariables Provides an easy way for server code to publish strings into client script code. This object basically provides a mechanism for adding key value pairs and embedding those values into an object that is hosted on the client.

  Last Updated: 7/15/2008 | © West Wind Technologies, 2008