70 references to ControlType
System.Web (66)
Compilation\BaseTemplateCodeDomTreeGenerator.cs (20)
192if (typeof(Control).IsAssignableFrom(builder.ControlType)) { 196Debug.Assert(builder.ControlType != null); 197if (builder.ControlType != null) { 207TypeDescriptor.GetAttributes(builder.ControlType)[typeof(PartialCachingAttribute)]; 213method.ReturnType = CodeDomUtility.BuildGlobalCodeTypeReference(builder.ControlType); 228BuildBuildMethodInternal(builder, builder.ControlType, fInTemplate, topLevelControlInTemplate, pse, 255CodeCastExpression cast = new CodeCastExpression(builder.ControlType.FullName, 257statements.Add(new CodeVariableDeclarationStatement(builder.ControlType.FullName, "__ctrl", cast)); 622TypeDescriptor.GetAttributes(ctrlBuilder.ControlType)[typeof(PartialCachingAttribute)]; 636CodeDomUtility.BuildGlobalCodeTypeReference(ctrlBuilder.ControlType); 677ctrlBuilder.ControlType.GetHashCode().ToString(CultureInfo.InvariantCulture))); 804CodeDomUtility.BuildGlobalCodeTypeReference(pseSub.Builder.ControlType); 1167if (!memberType.IsAssignableFrom(builder.ControlType)) { 1176builder.ID, memberType.FullName, builder.ControlType.FullName), null, 1245CodeVariableDeclarationStatement targetDecl = new CodeVariableDeclarationStatement(builder.ControlType, "target"); 1255new CodeCastExpression(builder.ControlType, 1614fTemplate && typeof(Control).IsAssignableFrom(((ControlBuilder)child).ControlType) && !(builder is RootBuilder); 1714if (builder is RootBuilder && builder.ControlType != null) 1715return builder.ControlType; 1720return builder.ControlType;
Compilation\DataBindingExpressionBuilder.cs (2)
83CodeVariableDeclarationStatement targetDecl = new CodeVariableDeclarationStatement(controlBuilder.ControlType, "dataBindingExpressionBuilderTarget"); 90new CodeCastExpression(controlBuilder.ControlType,
Compilation\PageThemeCodeDomTreeGenerator.cs (5)
62Type controlType = builder.ControlType; 208Type ctrlType = builder.ControlType; 213object skinKey = PageTheme.CreateSkinKey(builder.ControlType, skinID); 218builder.ControlType.FullName), null, builder.VirtualPath, null, builder.Line); 235bool isTopLevelCtrlInTemplate = fTemplate && typeof(Control).IsAssignableFrom(((ControlBuilder)child).ControlType);
UI\CollectionBuilder.cs (7)
49PropertyInfo propInfo = TargetFrameworkUtil.GetProperty(parentBuilder.ControlType, 52Debug.Assert(ControlType != null, "ControlType != null"); 58propInfo = TargetFrameworkUtil.GetProperty(ControlType, "Item", bindingFlags, types: new Type[] { typeof(int) }); 62propInfo = TargetFrameworkUtil.GetProperty(ControlType, "Item", bindingFlags); 95if (ControlType != null) { 96controlTypeName = ControlType.FullName; 124throw new HttpException(SR.GetString(SR.Literal_content_not_allowed, ControlType.FullName, s.Trim()));
UI\ControlBuilder.cs (23)
100Type ctrlType = NamingContainerBuilder.ControlType; 110return NamingContainerBuilder.ControlType; 118Type ctrlType = NamingContainerBuilder.ControlType; 512if (ParentBuilder == null || ParentBuilder.ControlType == null) { 515else if (typeof(INamingContainer).IsAssignableFrom(ParentBuilder.ControlType)) { 538return NamingContainerBuilder.ControlType; 711Debug.Assert(ControlType != null, "ControlType should not be null if we're adding a property entry"); 714if (TargetFrameworkUtil.GetEvent(ControlType, "DataBinding") == null) { 760throw new InvalidOperationException(SR.GetString(SR.ControlBuilder_CannotHaveMultipleBoundEntries, fullPropertyName, ControlType)); 838throw new InvalidOperationException(SR.GetString(SR.ControlBuilder_TwoWayBindingNonProperty, name, ControlType.Name)); 1074throw new HttpException(SR.GetString(SR.Property_theme_disabled, eventName, ControlType.FullName)); 1342if (ControlType != null && !flags[controlTypeIsControl]) { 1524ConstructorNeedsTagAttribute cnta = (ConstructorNeedsTagAttribute)TargetFrameworkUtil.GetAttributes(ControlType)[typeof(ConstructorNeedsTagAttribute)]; 1594object[] attrs = TargetFrameworkUtil.GetCustomAttributes(ControlType, typeof(ParseChildrenAttribute), /*inherit*/ true); 1966builder.ControlType == ControlType && 1968throw new InvalidOperationException(SR.GetString(SR.Cannot_set_recursive_skin, builder.ControlType.Name)); 2011flags[isICollection] = typeof(ICollection).IsAssignableFrom(ControlType); 2189MethodInfo methodInfo = ControlType.GetMethod("Add", BindingFlags.Public | BindingFlags.Instance, null, new Type[] { objValue.GetType() }, null); 2806return typeof(ICollection).IsAssignableFrom(ParentBuilder.DefaultPropertyBuilder.ControlType); 2809return typeof(ICollection).IsAssignableFrom(ParentBuilder.ControlType); 3026throw new InvalidOperationException(SR.GetString(SR.Property_theme_disabled, ParseTimeData.FirstNonThemableProperty.Name, ControlType.FullName)); 3133throw new InvalidOperationException(SR.GetString(SR.Property_theme_disabled, propDesc.Name, ControlType.FullName));
UI\ObjectPersistData.cs (1)
32_objectType = builder.ControlType;
UI\PageTheme.cs (3)
40Type ctrlType = subBuilder.ControlType; 47if (InPageTheme && !ThemeableAttribute.IsTypeThemeable(subBuilder.ControlType)) { 48throw new HttpParseException(SR.GetString(SR.Type_theme_disabled, subBuilder.ControlType.FullName),
UI\SkinBuilder.cs (2)
227IDictionary skins = _skinBuilders[builder.ControlType] as IDictionary; 230_skinBuilders[builder.ControlType] = skins;
UI\WebControls\Literal.cs (1)
36ControlType.ToString()));
UI\WebControls\WizardStepBase.cs (2)
22if (parentBuilder.ControlType == null || 23!(typeof(WizardStepCollection).IsAssignableFrom(parentBuilder.ControlType))) {
System.Web.Mobile (4)
UI\MobileControls\DeviceSpecificChoice.cs (1)
684if (subBuilder.ControlType != typeof(LiteralText))
UI\MobileControls\Form.cs (1)
765Type controlType = subBuilder.ControlType;
UI\MobileControls\LiteralTextContainerControlBuilder.cs (1)
93if (subBuilder.ControlType != typeof(LiteralText))
UI\MobileControls\MobileControlBuilder.cs (1)
73if (typeof(Style).IsAssignableFrom(type) && !typeof(StyleSheet).IsAssignableFrom(ControlType))