AspNetCore.Docs/aspnet/web-forms/videos/aspnet-ajax/how-do-i-use-the-conditiona...

1.6 KiB

title author description ms.author manager ms.date ms.topic ms.assetid ms.technology ms.prod msc.legacyurl msc.type
[How Do I:] Use the Conditional UpdateMode of the UpdatePanel? | Microsoft Docs JoeStagner The ASP.NET AJAX UpdatePanel includes an UpdateMode property that may be set to 'Always' or 'Conditional'. The default is Always, in which case the UpdatePan... aspnetcontent wpickett 08/01/2007 article 10b5bad3-4c18-464f-9454-0b3e60b7b8be dotnet-webforms .net-framework /web-forms/videos/aspnet-ajax/how-do-i-use-the-conditional-updatemode-of-the-updatepanel video

[How Do I:] Use the Conditional UpdateMode of the UpdatePanel?

by Joe Stagner

The ASP.NET AJAX UpdatePanel includes an UpdateMode property that may be set to 'Always' or 'Conditional'. The default is Always, in which case the UpdatePanel will always update its content during an asychronous postback. In this video we learn how we can set the UpdateMode to Conditional, in which case the UpdatePanel will only update its content when our server-side code calls its Update method. This allows you to use conditional logic in your C# or Visual Basic code to determine whether the UpdatePanel will update its content during the current asynchronous postback.

▶ Watch video (13 minutes)

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