I've read the topic http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/Q_23066709.html
but my problem isn't solved with it.
Is there any way to detect if file IO is completed?.
I have the same problem. I choose first a year and then I see a gridview with all the pictures of persons in that year. I select a person and click a browse button, choose my file and upload my file by clicking a button. The code behind the file uploads the file and then refreshes my gridview (gridview.databind) and in this gridview I see then the old picture. If I hit F5 of my browser then I see the new uploaded picture.
When there is no original picture available for a person I display a "No image available"-image. when I upload a picture for such person without original picture and when the gridview refreshes, the new picture is there. So I guess it couldn't be a file IO completion problem?
Response.redirect is not an option for me because then my page loads from the beginning. Before I see my gridview I need to choose first a "Year" from a dropdownlist
Then I thought it could be a cache problem, but after reading and testing all suggestions from http://www.syncfusion.com/FAQ/aspnet/web_c25c.aspx
I'm not sure, because when i do the following:
Dim objItem As DictionaryEntry
For Each objItem In Cache
Response.Write (objItem.Key.ToString ())
I don't get anything on my screen, which looks like there is nohting in the cache.
What else could it be then?