CodeSmith Tips: Part 1

1. When set the dynamic content, don't use the ';'

Example: <%= My() %>

2. When call any method or put any codes (in non-script or content area), use ';' where implementable

Example: <% My(); %>

3. For non-IDE property, put them in 'script' tag, never put the properties in the render '<% %>' block.

4. For IDE property, put them at the beginning if the page, as follows

Example: <%@ Property Name="SampleStringProperty" Type="System.String" Default="SomeValue" Optional="True" Category="Strings" Description="This is a sample string property." %>

Print | posted on Thursday, November 09, 2006 4:48 PM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)
 
Please add 8 and 6 and type the answer here: