I have spent about 2 days trying to figure out how to use the new AjaxFileUpload control along with a GridView to show what files have been uploaded.
My problem is that the GridView is not displaying the uploaded files until I reload the page.
I have both controls inside of an Update Panel. I have tried adding an AsynchPostBackTrigger that uses the UploadComplete event:
<asp:AsyncPostBackTrigger ControlID="AjaxFileUpload1" EventName="UploadComplete" />
I have tried binding the gridview in the codebehind as the last step in OnUploadCompete method.
I have tried using a __doPostBack javascript function to force a Postback, triggered by OnClientUploadComplete, but that isn't working etiher.
What am I missing here? The GridView updates when I use the controls within it (Delete), but does not automatically update after uploading a file using the AjaxFileUpload Control. What gives?