Jump to: navigation, search

JET FAQ How do I create user specific code regions?

Question

Jet2 provides control tags for specifying regions that contain user specific code. How should I use them ?

Answer

A user specific code region has to be declared this way :

  <c:userRegion>//BEGIN user code marker<c:initialCode>
  //todo insert your code here
  </c:initialCode>//END user code marker</c:userRegion>

The BEGIN and END markers are used for keeping the user code when a code regeneration happens. The whole string between userRegion and initialCode becomes the marker. It is important to declare them on one line between the two delimiter tags, without extra spaces, especially if you do use code formatter.

Back to the M2T-JET-FAQ