asp.net - .net Ajax - hiding content on update -


I have several ASP.NET AJAX update panels on one page, which can be free from freedom I like it When the Refresh button is used, then the content is hidden in the panel, and only the loading image is displayed when the data is loaded (data coming from the server takes 5-10 seconds). What is the best way to achieve this?

You can hide / show the panel using Javascript RequestHandler's start and end work :

  var panel = new Sys.UI.Control ($ get ("myUpdatePanel")); Function horoscope (sender, args) {panel.set_viewible (wrong); } Function endRequestHandler (sender, args) {panel.set_viewible (true); }  

Comments