ASP.NET - Toggle Non-server Control Visibility (WebProNews)
ASP.NET - Toggle Non-server Control Visibility (WebProNews)
Since ASP.NET 1.0 you had the ability to toggle the visibility of any HTML tag with the runat=”server” attribute. The only prerequisite is to add the runat=”server” and ID attributes, but that is not always possible or desirable. If you add elements dynamically to the DOM tree using JavaScript it is impossible and if you have a lot of elements to toggle individually it may not be desirable. …