Reputation: 8704
I have a FormView that is binded to model. And use such controls inside it:
<asp:TextBox runat="server" ID="txtName" Text='<%#: BindItem.Name %>'></asp:TextBox>
After i've added annotations to the object the form is binded to- validation started to work, but i can't see any validation messages. How to properly do that?
PS:
ValidationSettings.UnobtrusiveValidationMode = UnobtrusiveValidationMode.WebForms;
Upvotes: 1
Views: 1061
Reputation: 1450
Have you tried the <asp:ValidationSummary>
control?
Like this:
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
DisplayMode="BulletList" ShowModelStateErrors="true" />
Upvotes: 1