--- title: "[How Do I:] Use JavaScript to Refresh an ASP.NET AJAX UpdatePanel? | Microsoft Docs" author: JoeStagner description: "In this video we learn two different ways of using JavaScript logic to refresh the content of an ASP.NET AJAX UpdatePanel control. The first way is to add a..." ms.author: aspnetcontent manager: wpickett ms.date: 07/25/2007 ms.topic: article ms.assetid: b4d5b7ce-c322-4313-985d-455df98d619a ms.technology: dotnet-webforms ms.prod: .net-framework msc.legacyurl: /web-forms/videos/aspnet-ajax/how-do-i-use-javascript-to-refresh-an-aspnet-ajax-updatepanel msc.type: video --- [How Do I:] Use JavaScript to Refresh an ASP.NET AJAX UpdatePanel? ==================== by [Joe Stagner](https://github.com/JoeStagner) In this video we learn two different ways of using JavaScript logic to refresh the content of an ASP.NET AJAX UpdatePanel control. The first way is to add a Button-type server control to the UpdatePanel and use JavaScript to trigger an asynchronous postback and 'pretend' that the postback was caused by the server control inside the UpdatePanel. The second way does not require any Button-type server control to be added to the UpdatePanel, but still allows us to use JavaScript logic to refresh the content of the UpdatePanel. (The second technique was suggested by Dave Ward and you can read more on his weblog entry, " Easily refresh an UpdatePanel, using JavaScript ".) [▶ Watch video (10 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-use-javascript-to-refresh-an-aspnet-ajax-updatepanel) >[!div class="step-by-step"] [Previous](how-do-i-build-a-custom-aspnet-ajax-server-control.md) [Next](how-do-i-determine-whether-an-asynchronous-postback-has-occurred.md)