image not change when pop-up window was closed
<p>Hi 
Can anyone help me regarding my problem. I have an application that upload a photo.There are two pages involves in this application a parent page and a pop-up window.On the parent page I have a "Upload" button.when I click the the button a pop-up will show. On the pop-up window the user can browse a  photo then click the "Upload" button to upload the photo automatically at the same time closed the pop-up window.I used the "showmodaldialog" to automatically refresh the parent window. The code below will exceute at Page_load event of the parent page and then display the current uploaded photo. but the problem is the current photo uploaded was not reflect or display on the parent window.What is the problem here?</p>

<pre><code>Uri absolutePath = new Uri(HttpContext.Current.Request.Url, @"applicantsphoto/" + lnguid + ".png");

        imgPhoto.ImageUrl = string.Empty;
        if (absolutePath.ToString().EndsWith(".png"))
        {

            if (File.Exists(Server.MapPath(@"applicantsphoto/" + lnguid + ".png")))
            {

                imgPhoto.ImageUrl = @"applicantsphoto/" + lnguid + ".png";
            }
            else
            {
                imgPhoto.ImageUrl = @"applicantsphoto/nophoto.gif";
            }

            lnkUpload.Text = "Change Photo";
        }
</code></pre>
