Tag Archives: validation

Add text to asp:ValidationSummary (C#)

This trick is especially useful when you have custom code to be executed after your form have been submitted, and still wishes to communicate an error the same way as you communicate form validation errors. Imagine the following ValidationSummary: Any … Continue reading

Posted in c#, General .NET | Tagged , , , | 1 Comment

Validate CheckBoxList using a CustomValidator

In this article I explain how you can validate that at least one checkbox is checked in an asp:CheckBoxList using an asp:CustomValidator, and how to make it work server side and client side. None of the built in .net validators … Continue reading

Posted in .net, c#, General .NET | Tagged , , , , , , , , | 6 Comments

Using Sitecore Field Validators

UPDATE 2019-11-12: This article is still valid for Sitecore 9.x The Sitecore field validators is a set of user-input validators that can be applied to either an item, a specific field type or a specific field on a specific item. Sitecore … Continue reading

Posted in .net, Sitecore 6, Sitecore 7, Sitecore 8, Sitecore 9 | Tagged , , , , | 12 Comments