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