FileUpload.Hasfile is returning false(What is the reason?)
<p>I have a fileupload control on my .aspx page.</p>

<pre><code>&lt;asp:FileUpload ID="FileUpload1" runat="server" /&gt;
</code></pre>

<p>I am validating my control on my CS page.</p>

<pre><code>if (FileUpload1.HasFile)
</code></pre>

<p>but this if condition is returning always false. I am not getting what is the actual reason! Can anyone help me in this?</p>