Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Refreshing WebDataTree
posted

I have an .aspx page with a WebDataTree control, a WebHierarchicalDataSource control (configured with 2 SqlDataSource controls), and a WebUpload control.

It's a simple setup, user uploads a file, which executes some code-behind that updates the database, which should then refresh the WebDataTree.  The tree is indeed initially populated with existing data.  And Uploading new files should refresh that list.  

The database does get updated with new file information, and If I force a page refresh the tree does get repopulated.  But I'd like the WebDataTree to repopulate once a file is uploaded, which I normally do by calling the control's DataBind() on post back, in this case WedDataTree1.DataBind() during the WebUpload1_UploadFinished() event.

But this does not refresh the WebDataTree control. Am I missing something?  Is this not the way to refresh the control?