0
I have a button inside a Peater. As it is in a Peater, it only appears in the Databind() of the Peater. Using the variable and the event, I can get to that 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 I need to give a Enabled=false and I can’t. In this command e.Item.FindControl("fiuDocumentoUpload").
I can’t bring Enabled. I can get Visible, but Enabled can’t. How I do?
His statement on Asp.Net
<td class="ajusteTdIe">
<asp:FileUpload ID="fiuDocumentoUpload" runat="server" CssClass="acessos" />
</td>
I did as your example, but gives error of: Object not set for a instance of Object
– pnet
Fileupload Ids do not change in Peater?
– Laerte
Do you refer to which ID’s? If it is the ID’s of the items yes, but only those. As for this: fiuDocumentUpload, then no.
– pnet