Reputation: 11
How can I set the Validation.ErrorTemplate property in code behind?
Upvotes: 1
Views: 599
Reputation: 91
Thats very straight forward.
You can use the below code,
Validation.SetErrorTemplate(this.editor, Resources["MyTemplate"] as ControlTemplate);
Regards,
Jawahar
Upvotes: 2