Hi,
https://www.aspsnippets.com/Articles/Using-FileUpload-Control-inside-ASP.Net-AJAX-UpdatePanel-Control.aspx
I have followed the above url for my issue stated above but still my file upload control .HasFile is returning false. What should I do to resolve it.
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Panel ID="ModalPanel" runat="server" Visible="false">
<div class="ModalPopupBackground">
<center>
<div class="modalPopup">
<br style="line-height: 5px;" />
<span class="spn">
<asp:ImageButton ID="btnClose" runat="server" Height="23px" ImageUrl="~/Images/close.jpg"
Width="24px" OnClick="btnClose_Click" /></span>
<br />
<table>
<tr>
<td colspan="2">
<h3 style="text-align: left;">
Stage 1:</h3>
</td>
</tr>
<tr>
<td>
<asp:FileUpload ID="fileStage1" runat="server" />
</td>
<td>
<asp:ImageButton ID="btnUploadStage1" runat="server"
ImageUrl="~/Images/Upload-Button-Transparent-PNG.png" Width="80px"
onclick="btnUploadStage1_Click" />
<asp:Image ID="ImgCheck1" runat="server" ImageUrl="~/Images/checkmarkSmall.png" Width="25px" visible="false"/>
</td>
</tr>
<tr>
<td colspan="2">
<h3 style="text-align: left;">
Stage 2:</h3>
</td>
</tr>
<tr>
<td>
<asp:FileUpload ID="fileStage2" runat="server" />
</td>
<td>
<asp:ImageButton ID="btnUploadStage2" runat="server"
ImageUrl="~/Images/Upload-Button-Transparent-PNG.png" Width="80px"
onclick="btnUploadStage2_Click" />
<asp:Image ID="ImgCheck2" runat="server" ImageUrl="~/Images/checkmarkSmall.png" Width="25px" visible="false"/>
</td>
</tr>
<tr>
<td colspan="2">
<h3 style="text-align: left;">
Stage 3:</h3>
</td>
</tr>
<tr>
<td>
<asp:FileUpload ID="fileStage3" runat="server" />
</td>
<td>
<asp:ImageButton ID="btnUploadStage3" runat="server"
ImageUrl="~/Images/Upload-Button-Transparent-PNG.png" Width="80px" onclick="btnUploadStage3_Click"/>
<asp:Image ID="ImgCheck3" runat="server" ImageUrl="~/Images/checkmarkSmall.png" Width="25px" visible="false"/>
</td>
</tr>
<tr>
<td colspan="2">
<h3 style="text-align: left;">
Stage 4:</h3>
</td>
</tr>
<tr>
<td>
<asp:FileUpload ID="fileStage4" runat="server" />
</td>
<td>
<asp:ImageButton ID="btnUploadStage4" runat="server"
ImageUrl="~/Images/Upload-Button-Transparent-PNG.png" Width="80px" onclick="btnUploadStage4_Click"/>
<asp:Image ID="ImgCheck4" runat="server" ImageUrl="~/Images/checkmarkSmall.png" Width="25px" visible="false"/>
</td>
</tr>
<tr>
<td colspan="2">
<h3 style="text-align: left;">
Stage 5:</h3>
</td>
</tr>
<tr>
<td>
<asp:FileUpload ID="fileStage5" runat="server" />
</td>
<td>
<asp:ImageButton ID="btnUploadStage5" runat="server"
ImageUrl="~/Images/Upload-Button-Transparent-PNG.png" Width="80px" onclick="btnUploadStage5_Click"/>
<asp:Image ID="ImgCheck5" runat="server" ImageUrl="~/Images/checkmarkSmall.png" Width="25px" visible="false"/>
</td>
</tr>
</table>
<br style="line-height: 10px;" />
</div>
</center>
</div>
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="btnUploadStage1" />
</Trigger>
</asp:UpdatePanel>
Regards