AspNetCore.Docs/aspnet/web-forms/videos/how-do-i/how-do-i-make-html-elements...

1.5 KiB

uid title author description ms.author ms.date ms.assetid msc.legacyurl msc.type
web-forms/videos/how-do-i/how-do-i-make-html-elements-accessible-from-server-side-code [How Do I:] Make HTML elements accessible from server side code | Microsoft Docs rick-anderson In this video Chris Pels will show how to make standard HTML elements in an .aspx page accessible from server side code so they can be used in page processin... aspnetcontent 05/29/2008 1e2bafaa-ae6a-4c4c-839b-ff2dfe836902 /web-forms/videos/how-do-i/how-do-i-make-html-elements-accessible-from-server-side-code video

[How Do I:] Make HTML elements accessible from server side code

by Chris Pels

In this video Chris Pels will show how to make standard HTML elements in an .aspx page accessible from server side code so they can be used in page processing like a standard ASP.NET server control. First, see how the addition of a runat="server" attribute to a standard HTML control like a <div> allows it to be referenced in server side code with full Intellisense. Next, see several examples of how you might manipulate HTML elements on a page with this technique. Lastly, see how this technique can be used in conjunction with the new ListView control in .NET Framework Version 3.5 to control the layout of a list.

▶ Watch video (21 minutes)