I am developing a Silverlight application and I have a form in which some data fields are shown depending on business rules. All the fields are required but some fields don't show up all the time.
So, I have a problem with the RequiredFieldAttribute because I can't pass parameters to it such as the condition. When I try to save the current data form it would complain about the fields that are not in the form that they are required.
Is there a way around this? Thanks.
Answer: 1
I ended up using a custom validator.
by : user282807http://stackoverflow.com/users/282807
No comments:
Post a Comment
Send us your comment related to the topic mentioned on the blog