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

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -