Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Current »

The OnPreRender event is fired just before the CodeSmith Generator engine merges metadata with your template to produce the template's output. One use for this event is to perform "sanity checks" on metadata entered by the user. You could, for example, check that a date entered was within an acceptable range, and change it to the earliest or latest acceptable date if it is not.

Although you can modify metadata in the OnPreRender event, you cannot prevent the template from being rendered.

  • No labels