Young adult chatrooms - Datetimepicker validating
For example, the code below will throw an exception when the Having validation rules automatically enforced by the .
They automatically look for validation attributes specified on the model and display error messages as appropriate.
What's really nice about this approach is that neither the controller nor the Create view template knows anything about the actual validation rules being enforced or about the specific error messages displayed.
Am i missing something, as I may be not properly into your case.
Do you want to have your say when we set our development plans?
I am validating a date in code behind using Parse Date Time event and setting the date back to a previous value if the validation failed but the Date Time Text value of the control is remaining at the invalid date that was selected.