All Questions
Tagged with castle validation
7 questions
0
votes
1
answer
70
views
What specific Regex does Castle Validator ValidateEmail use?
I have two interacting systems in one we are using Castle Validator for our validation, the other is coded by hand, I need to ensure the email validation between these two systems is a match; the ...
0
votes
1
answer
998
views
Min Length Custom AbstractValidationAttribute and Implementing Castle.Components.Validator.IValidator
I see with the Castle validators I can use a length validation attribute.
[ValidateLength(6, 30, "some error message")]
public string SomeProperty { get; set; }
I am trying to find a ...
3
votes
2
answers
2k
views
Localized Attribute parameters in C#
In C#, attribute parameters require to be a constant expression, typeof or array creation expression.
Various libraries, like for example Castle validator, allow specifying passing what seems like ...
1
vote
1
answer
384
views
ASP.Net MVC 2.0 Client Validation with Castle Validators
Im trying to implement a client and server validation for my webapplication using castle valitors.Has anyone got any examples of how to use Castle Validators with ASP.net mvc v2 Client validation.
0
votes
1
answer
169
views
Objects validating itself using Castle Validators
I have a Task object which has a property of Employee. Im trying to find the best possible way setting a validation to only allow the certain employees to access the task object. If the current ...
0
votes
2
answers
677
views
NHibernate proxies prevent Castle.Validator component to do it's job
I've run into the problem with NHibernate proxy validation using Castle.Validator component. It's looks like validator could not fetch attributes from entity proxy's properties.
I've tried to define ...
2
votes
2
answers
563
views
How do you use Castle Validator with Subsonic generated classes?
Castle Validator uses attributes to specify validation rules. How can you hook these up with Subsonic's generated classes (or any classes where you can't define the attributes on)? Is there a way to ...