Hi @Gani_tpt,
You can do this with the following code.
<script type="text/javascript">
function UploadFile(fileUpload) {
if (fileUpload.value != '') {
$("[id*=gvCustomers]").find("[id*=btnUpload]").click();
}
}
function ShowProgress() {
$("[id*=gvCustomers]").find("[id*=loading_img]").show();
}
</script>
<EditItemTemplate>
<asp:FileUpload ID="fuUpload" runat="server" />
<asp:Label ID="ImageErrorLabel" runat="server" Text='<%# Eval("FileName") %>' />
<asp:Button ID="btnUpload" Text="Upload" OnClick="Upload" runat="server" OnClientClick="ShowProgress();" Style="display: none" />
<img id="loading_img" runat="server" style="Display: None" src="https://i.pinimg.com/originals/8a/c1/29/8ac12962c05648c55ca85771f4a69b2d.gif" width="50" height="50"/>
</EditItemTemplate>
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.