// (c) Copyright Microsoft Corporation. // This source is subject to the Microsoft Permissive License. // See http://www.microsoft.com/resources/sharedsource/licensingbasics/sharedsourcelicenses.mspx. // All other rights reserved. using System; using System.Collections.Generic; using System.Text; using System.Web.UI; using System.Web; using System.Web.UI.WebControls; namespace AjaxControlToolkit.Design { /// <summary> /// A simple derived class of ControlID converter that lets us filter based on a type. /// /// This lets us have drop-downs in the property browser that pick a given Button or TextBox, etc. /// </summary> /// <typeparam name="T"></typeparam> [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1706:ShortAcronymsShouldBeUppercase", Justification="Following ASP.NET AJAX pattern")] public class TypedControlIDConverter<T> : ControlIDConverter { protected override bool FilterControl(Control control) { return typeof(T).IsInstanceOfType(control); } } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)