FindControl qui ne trouve pas?
Bonjour, j'ai un control de type TextBox dans une page aspx:
Code:
1 2
|
<asp:TextBox ID="Digit1" runat="server" CssClass="Text10n" MaxLength="1" Columns="1"></asp:TextBox> |
Et dans le CodeBehind je cherche ce control :
Code:
1 2 3 4 5 6
| Dim myControl1 As Control = FindControl("Digit1")
If (Not myControl1 Is Nothing) Then
Response.Write("Trouver")
Else
Response.Write("Control not found.....")
End If |
Et je n'arrive pas à le trouver... est-ce que quelqu'un saurait pourquoi?
Merci beaucoup d'avance.