If you use the client library only you'll need to ensure that you load the script library into your pages. This is not required if you use any of the controls, since they will automatically include the script library. But if you want to use the any of the client script functionality on a page that doesn't include any of the controls you'll need to manually load the JavaScript library.
To manually load the wwScriptLibrary.js you have several options:
- Manually copy and load the script
You can copy the wwScriptLibrary.js file into your Web application and load the the script directly with:
<script src="scripts/wwScriptLibrary.js" type="text/javascript">
</script>
- Use ControlResources.LoadwwScriptLibrary(this.Page)
You can also have ASP.NET serve the library as part of the control assembly in an optimized fashion by calling:
Westwind.Web.Controls.ControlResources.LoadwwScriptLibrary()
from anywhere in your page code. This loads the library from the embedded resources and also will compress the script with GZip if the provided HttpModule is configured .