A basic functional template file (mastertemplate.bwmt
) without any layout or styling consists of the following mandatory template parts: <% CommonScripts %>
, <% Content %>
, <% HiddenFormFields %>
, and <% StartupScripts %>
. Most applications cannot function properly without <% Navigation main %>
, <% ButtonBarButtons left %>
, and <% ButtonBarButtons right %>
.
Putting it all together, you will get something like the example below:
As shown in the basic template above, to perform a proper postback, the <% Content %>
and <% HiddenFormFields %>
should be placed inside a <form>
block with the attribute enctype="multipart/form-data"
as follows:
Refer to the WMT reference for more details about the template parts and additional elements that can be used in design templates.