I made two small modifications to the default File Explorer Demo to test a problem I am having, and I was able to repeat the problem on it.
The issue is this:
I added a button to a page and a PreRender event to the file Explorer control on a page with the intention of updating the button text after the prerender event occurs on the file explorer. For some reason, if I upload a new file, the button text is updated as it should be, if I delete an existing file, the pre render event occurs, and the code to change the button text runs, but the text on the button is never updated. Why would I get this result?
take your existing file explorer default demo, and add a button above the text: "Browse to an image and double click to preview."
|<asp:Button ID="btnSubmit" runat="server" Text="Submit" />
then add a PreRender to FileExplorer1:
| protected void FileExplorer1_PreRender(object sender, EventArgs e)
| btnSubmit.Text += " | 1";
If you put a break point on the text change, it will fire both on adding a new document and deleting an existing document, but the button text does not change on delete.
Is this a bug?
If not, how do I change the other controls on a page after an FileExplorer event?