FileUpload Control not taking file name
<p>I am using FileUpload Control to upload images, I can select the image using that browse button, but when i try to preview that selected one, i am not getting the file name, its showing empty..</p>

<pre><code>protected void btnImgUpload_Click(object sender, ImageClickEventArgs e)
{
    try
    {
        string strimage;
        string strfilename, strextn;
        if (fupImage.HasFile)
        {
</code></pre>

<p>In the above code,<code>fupImage.FileName</code> property should have to selected Image name, but it remains as empty string "" , so <code>fubImage.HasFile</code> condition is going false. I am not getting why the condition is going false, while the file is selected,? what is the problem here?</p>

<p>Thanks in advance</p>
