I am fairly new to asp.net and have been experimenting with it for around a week now. Currently, I have a page that interacts with a web service, continuously checking its progress (shown in an UpdatePanel) until completion. Once the process is completed, the progress text disappears and instead, a TreeView displaying a recursive list of files with metadata is shown in the UpdatePanel. My goal is to allow users to click on a node in the TreeView, which would then trigger another UpdatePanel to display more detailed information about the clicked node obtained from the server side. However, I have been facing challenges in implementing this functionality.
After researching on platforms like StackOverflow, I found solutions on how to call codebehind functions from javascript by using WebMethods or similar approaches. Unfortunately, these techniques seem to be restricted to static methods only, making it difficult to modify the page itself or access session/page state. Furthermore, while there are discussions on having javascript initiate an UpdatePanel refresh (__doPostBack()), the lack of communication with the server regarding the specific node selected poses a challenge in determining what content should be displayed in the refreshed UpdatePanel.
So, my question is whether there is a clever workaround that I am overlooking, which would enable me to use javascript on the page to invoke a server-side function capable of receiving parameters and triggering a partial postback on a different UpdatePanel?
Thank you for your assistance!