Basic Functional Template
A basic functional template file (mastertemplate.bwmt
) without any layout and styling consists of the following mandatory template parts: <% CommonScripts %>
, <% Content %>
, <% HiddenFormFields %>
, and <% StartupScripts %>
. Most applications can not interact without a <% Navigation main %>
, <% ButtonBarButtons left %>
, and <% ButtonBarButtons right %>
.
To put it all together you will get something like the below:
Postback
As seen in the basic template above, to do a proper postback, the <% Content %>
, and <% HiddenFormFields %>
should be placed inside a <form>
block and attribute enctype="multipart/form-data"
like so:
Remarks
See the WMT reference to find more details about the template parts and more to be used on design templates.
Last updated
Was this helpful?