Hello a tous,

j'ai un petit souci,

dans mon page_load, j'appelle des fonctions pour allimenter ma page.

Mais si je n'ai aucune infos disponible je voudrais afficher un message dans mon validationsummary.

J'ai essayé ceci, mais ca ne fonctionne pas

pourriez-vous m'aider?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
 
 
If Lots.Count < 1 Then
                Dim test As New CustomValidator
                test.Text = "Tadaaaaaaa"
                test.ErrorMessage = "tsoin tsoin"
                test.IsValid = False
                test.DataBind()
            End If
merci