Bonjour
Voici mon code
J'aimerais remplir mon panel de checkBox mais je rencontre des erreurs:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Dim tableau as String() tableau = new String (6) {"a","b ","c ","d","e","f","g"} Dim i As Integer For i = 0 To 6 Dim t As New CheckBox() t.Text =tableau("+i+") & i.ToString() t.ID = "CheckBox"+i+"" & i.ToString() Panel1.Controls.Add(t) Panel1.Controls.Add(New LiteralControl("<br>")) Next i
Au niveau t.TextLe format de la chaîne d'entrée est incorrect.
Pouvez vous m'aidez s'il vous plait?
Partager