This is probably really simple, but I just cannot see what I am doing wrong - or not doing!
I have a list of files (FileInfo array databound to a ListView) and it displays fine, all it does is list the file names and links them. - Simple.
The problem is that when I upload a new file and the page performs it's post-back, the ListView does not update. But if I go to the page with the ListView by browsing to it again, the list has updated.
I have seen this issue before, but I was able to 'fix' it by forcing a Response.Redirect to itself. - I don't like this at all!
I also tried to perform a Databind immediately after uploading (see the code below) but the issue still exists - no update after postback.
Any help on this would be appreciated.
protected void btnUpload_Click(object sender, EventArgs e)
fileUpload.SaveAs(dirServerPath + @"\" + fileUpload.FileName);