asp.net 4.5 - Repeater control doesn't have public property ModelType -
i'm trying use model binding feature of asp.net 4.5. i'm using repeater control, seting modeltype property on it, run application, i'm getting parser error, states, repeater doesn't have modeltype public property. here's markup
<ul> <asp:repeater id="rptdepartments" runat="server" modeltype="testwebapp.models.department"> <itemtemplate> <li> <%#: item.deptname %> </li> </itemtemplate> </asp:repeater> </ul>
any ideas ? saw plenty of examples of using model binding in conjuction repeater control in web.
i'm using vs 2012 rc.
it looks modeltype property got renamed itemtype see http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.repeater.itemtype(v=vs.110).aspx more info.
Comments
Post a Comment