AspNetCore.Docs/aspnet/web-forms/videos/aspnet-ajax/how-do-i-use-javascript-to-...

1.8 KiB

uid title author description ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod msc.legacyurl msc.type
web-forms/videos/aspnet-ajax/how-do-i-use-javascript-to-refresh-an-aspnet-ajax-updatepanel [How Do I:] Use JavaScript to Refresh an ASP.NET AJAX UpdatePanel? | Microsoft Docs 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... aspnetcontent wpickett 07/25/2007 article b4d5b7ce-c322-4313-985d-455df98d619a dotnet-webforms .net-framework /web-forms/videos/aspnet-ajax/how-do-i-use-javascript-to-refresh-an-aspnet-ajax-updatepanel video

[How Do I:] Use JavaScript to Refresh an ASP.NET AJAX UpdatePanel?

by Joe Stagner

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)

[!div class="step-by-step"] Previous Next