data-annotations
wpf idataerrorinfo combobox
I have a simple view and viewmodel with the latter implementing IDdataErrorInfo and IValidationExceptionHandler. The view contains a combobox with its ItemsSource bound to an collection with SelectedV[详细]
2023-03-24 14:49 分类:问答How to add a new line into Display Attribute, Name field
I\'m working on an MVC3 application and am using data attributes for the display name fields on the screen.Below is a representative sample -[详细]
2023-03-24 10:50 分类:问答Strategy to prevent users from updating readonly viewmodel properties by Role/Permission on the server
The platform is ASP.NET MVC 2. We have a user story that states: On the [view], don\'t allow a user to edit [property] unless the user is[详细]
2023-03-24 09:23 分类:问答Best practice to validate Current Password for Change Password in ViewModel with .Net MVC 3?
My ViewModel: public class EditViewModel { [Required] public string CurrentPassword { get; set; } public string NewPassword { get; set; }[详细]
2023-03-23 18:52 分类:问答Fluent Validation vs. Data Annotations
What are the operative differences between these two validation packages when used for ASP.NET MVC validatation? They seem to have similar objects, all the way to their object na开发者_高级运维mes. Is[详细]
2023-03-22 08:26 分类:问答RIA Services library and resource strings in meta attributes
I\'ve split out my domain services into a separate WCF RIA Services Class Library project. However there now seems to be a problem with using the resource strings in the client side library.[详细]
2023-03-22 08:09 分类:问答Validating a collection with Dataannotations
Just started on ASP.NET MVC, and I\'m开发者_如何学C having some trouble applying datannotations to a collection - I\'m either missing something basic, or going about the whole thing in the wrong way.[详细]
2023-03-22 02:48 分类:问答using DataAnnotations to validate Model, not working
I have this code on an Entity created using EF 4: [MetadataType(typeof(MemberMetaData))] public partial class Member[详细]
2023-03-21 14:01 分类:问答Required attribute for an integer value
I have a viewmodel with an Id property [Required] public int Id { get; set; } But I think this attribute is working only for string properties.[详细]
2023-03-19 21:13 分类:问答Silverlight 4 Textbox validation only after change
Im developing a solution in Silverlight 4 with RIA Services.I am using data annotations on my entity to describe validation.I can see these are reflected on the client side code after building.I have[详细]
2023-03-19 20:24 分类:问答