I have a button inside a repeater. As it is in a repeater, it only appears in the DataBind () of the repeater. Using the variable and event, I get to this component like this:
protected void rptDocumentosRepeater_ItemDataBound(object source, RepeaterItemEventArgs e)
{
//Declarações
try
{
//Instancias e Inicializações
//Desenvolvimento
if (....)
{
e.Item.FindControl("fiuDocumentoUpload").
}
}
catch
{ throw; }
}
It turns out that I need to give an Enabled = false and I can not. In this command e.Item.FindControl("fiuDocumentoUpload").
I can not bring Enabled. I get the Visible, but the Enabled does not. How do I do it?
Declaring it in Asp.Net
<td class="ajusteTdIe">
<asp:FileUpload ID="fiuDocumentoUpload" runat="server" CssClass="acessos" />
</td>