Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You'll be wanting to play with the <code>PageRequestManager</code> from the ASP.NET AJAX library. Here's the MSDN reference for the PRM - <a href="http://msdn.microsoft.com/en-us/library/bb311028.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/bb311028.aspx</a>.</p> <p>Just be for warned Microsoft have stated that the TreeView can be problematic within the UpdatePanel and you'll also want to be <strong>very careful of the performance</strong>, particularly if you have a large TreeView (see my article on optimising the UpdatePanel performance - <a href="http://www.aaron-powell.com/blog.aspx?id=1195" rel="nofollow noreferrer">http://www.aaron-powell.com/blog.aspx?id=1195</a>). You should really look at something like a jQuery plugin (eg: <a href="http://bassistance.de/jquery-plugins/jquery-plugin-treeview/" rel="nofollow noreferrer">http://bassistance.de/jquery-plugins/jquery-plugin-treeview/</a>).</p> <p>But to actually answer you're question you need to:</p> <ul> <li>Have a <code>BeginRequest</code> event handler which will then clear your literal and can even show a Loading (I'm not a fan of the UpdateProgress, I prefer much more granular control I get from doing it myself)</li> <li>Use the <code>EndRequest</code> event to ensure that the Loading component vanises</li> </ul> <p>You could also make the TreeView a <code>AsyncPostbackTrigger</code> of the 2nd UpdatePanel on the page, or just call the Update method on it during the async postback of the TreeView</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload