.net移动开发
需求:原来是aspx下写的页面,现在要用mobile这个东西来做,请教一下怎么改写代码。
原代码:前台代码<asp:Repeater runat="server" ID="r1">
<HeaderTemplate><ul class="index_dh_ul"></HeaderTemplate>
<ItemTemplate>
<li><a href='Category.aspx?categoryId=<%# Eval("CategoryID")%>' target="_blank"><%# Eval("CategoryName") %></a></li>
</ItemTemplate>
<FooterTemplate></ul></FooterTemplate>
</asp:Repeater>
后台代码this.r1.DataSource = GetCategory();
this.r1.DataBind();
注:GetCategory()方法返回CategoryID,CategoryName这两个字段的列表。
现在改成mobile:List 或者mobile:ObjectList都行,给出代码最好。msdn上没看明白,求教各位大侠啦。谢谢!