How to get DataAnnotations working in asp.net 4.5 WebForms?
问题 I'm using .net 4.5 WebForms with Model Binding and Entity Framework 5. Part of my webform: <asp:ListView ID="MenteeModuleList" ItemPlaceholderID="itemPlaceHolder" OnCallingDataMethods="MenteeModuleList_CallingDataMethods" ItemType="PFA_Mentorship.BLL.MenteeModuleBL+MenteeModuleGrid" DataKeyNames="MenteeModuleID" SelectMethod="GetMenteeModulesGrid" InsertItemPosition="LastItem" InsertMethod="InsertMenteeModule" runat="server"> <LayoutTemplate> <table runat="server"> <tr runat="server"> <th id=