Note the following when using custom controls:
There is a registration declaration in the aspx file:
<% @ Register tagprefix = "Acme" namespace = "Acme" assembly = "Acme" %>
Add:
<Mobilecontrols>
<Device name = "htmldeviceadapters2" inheritsfrom = "" htmldeviceadapters ">
<Control name = "Acme. timerformcs, Acme" adapter = "Acme. htmltimerformadaptercs, Acme"/>
</Device>
</Mobilecontrols>
Name = "X, Y" X indicates the type name of the Control. y indicates the name of the assembly to be confirmed)
Container Control |
Template |
Remark |
Form |
Header Template |
Content in headertemplate will be displayed at the beginning of form mark <form... Id = "form1"> {header content} |
Footer Template |
Content in footertemplate will be displayed before the form Mark ends {footer content} </form> |
Panel |
Contenttemplate |
The content in contenttemplate is displayed as the content of the Panel. |
List |
Headertemplate |
The content in headertemplate is displayed at the beginning of the list. In paging mode, headertemplate is displayed at the beginning of the list on each page. |
Footertemplate |
The content in footertemplate is displayed at the end of the list. In page mode, footertemplate is displayed at the end of the list on each page. |
Itemtemplate |
The content in itemtemplate will be rendered as each item in the list. |
Alternatingitemtemplate |
If alternatingitemtemplate is defined, the content in itemtemplate and alternatingitemtemplate will be cross-rendered as each item in the list. |
Separatortemplate |
The content in separatortemplate is displayed as the interval between consecutive items. |
Objectlist |
Headertemplate |
Same as list |
Footertemplate |
Same as list |
Itemtemplate |
Same as list |
Alternatingitemtemplate |
Same as list |
Separatortemplate |
Same as list |
itemdetailstemplate |
objectlist is used to represent complex objects, in itemdetailstemplate, you can customize the object details |