I have a Repeater
structured something like this:
<asp:Repeater ID="rptListClaimTypes" runat="server">
<ItemTemplate>
<asp:FileUpload ID="fuContract" runat="server" />
<asp:LinkButton ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" CommandName='<%# Eval("ClaimTypeID")%>' />
</ItemTemplate>
</asp:Repeater>
I need to handle the file upload when btnUpload
is clicked. I can access the control that triggered the subroutine with sender
. How would I access fuContract
?
Protected Sub btnUpload_Click(sender As Object, e As EventArgs)
Dim ClaimTypeID As Integer = sender.CommandName
Dim fuContract As FileUpload = '??
End Sub