From b0a640ec3dca2a99d3f0b5a83e3a1bf6ae278c16 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 28 Feb 2006 03:05:10 +0000 Subject: Fixes some errors in asset tutorial. --- .../quickstart/protected/pages/Advanced/Assets.page | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'demos/quickstart') diff --git a/demos/quickstart/protected/pages/Advanced/Assets.page b/demos/quickstart/protected/pages/Advanced/Assets.page index ef4a1bf0..18b2a2be 100644 --- a/demos/quickstart/protected/pages/Advanced/Assets.page +++ b/demos/quickstart/protected/pages/Advanced/Assets.page @@ -14,7 +14,7 @@ PRADO provides several methods for publishing assets or directories containing a

@@ -23,22 +23,20 @@ BE AWARE: Be very careful with assets publishing, because it gives Web users acc

Customization

-Asset publishing is managed by the System.Web.UI.TAssetManager module. By default, all published asset files are stored under the [AppEntryPath]/assets directory, where AppEntryPath refers to the directory containing the application entry script. Make sure the assets directory is writable by the Web server process. You may change this directory to another by configuring the BasePath and BaseUrl properties of the System.Web.UI.TAssetManager module in application configuration, +Asset publishing is managed by the System.Web.TAssetManager module. By default, all published asset files are stored under the [AppEntryPath]/assets directory, where AppEntryPath refers to the directory containing the application entry script. Make sure the assets directory is writable by the Web server process. You may change this directory to another by configuring the BasePath and BaseUrl properties of the TAssetManager module in application configuration,

-<service id="page" class="TPageService"> - <modules> - <module id="asset" - class="System.Web.UI.TAssetManager" - BasePath="images" - BaseUrl="images" /> - </modules> -</service> +<modules> + <module id="asset" + class="System.Web.UI.TAssetManager" + BasePath="images" + BaseUrl="images" /> +</modules>

Performance

-PRADO uses caching techniques to ensure the efficiency of asset publishing. Publishing an asset essentially requires file copy operation, which is expensive. To save unnecessary file copy operations, System.Web.UI.TAssetManager only publishes an asset when it has a newer file modification time than the published file. When an application runs under the Performance mode, such timestamp checkings are also omitted. +PRADO uses caching techniques to ensure the efficiency of asset publishing. Publishing an asset essentially requires file copy operation, which is expensive. To save unnecessary file copy operations, System.Web.TAssetManager only publishes an asset when it has a newer file modification time than the published file. When an application runs under the Performance mode, such timestamp checkings are also omitted.

ADVISORY: Do not overuse asset publishing. The asset concept is mainly used to help better reuse and redistribute component classes. Normally, you should not use asset publishing for resources that are not bound to any components in an application. For example, you should not use asset publishing for images that are mainly used as design elements (e.g. logos, background images, etc.) Let Web server to directly serve these images will help improve the performance of your application. -- cgit v1.2.3