Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / ValidatedControlConverter.cs / 1 / ValidatedControlConverter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.ComponentModel; using System.Globalization; using System.Reflection; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ValidatedControlConverter: ControlIDConverter { ///Filters and retrieves several types of values from validated controls. ////// protected override bool FilterControl(Control control) { ValidationPropertyAttribute valProp = (ValidationPropertyAttribute)TypeDescriptor.GetAttributes(control)[typeof(ValidationPropertyAttribute)]; return valProp != null && valProp.Name != null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //Determines whether a given control should have its id added to the StandardValuesCollection. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.ComponentModel; using System.Globalization; using System.Reflection; using System.Security.Permissions; ////// [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class ValidatedControlConverter: ControlIDConverter { ///Filters and retrieves several types of values from validated controls. ////// protected override bool FilterControl(Control control) { ValidationPropertyAttribute valProp = (ValidationPropertyAttribute)TypeDescriptor.GetAttributes(control)[typeof(ValidationPropertyAttribute)]; return valProp != null && valProp.Name != null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.Determines whether a given control should have its id added to the StandardValuesCollection. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConfigurationStrings.cs
- UmAlQuraCalendar.cs
- InteropEnvironment.cs
- StagingAreaInputItem.cs
- ListSourceHelper.cs
- SerializerWriterEventHandlers.cs
- NameTable.cs
- FlowDocumentReader.cs
- IODescriptionAttribute.cs
- C14NUtil.cs
- DeclarationUpdate.cs
- XmlHierarchicalDataSourceView.cs
- DataGridViewButtonColumn.cs
- QilFactory.cs
- CompilationUtil.cs
- PtsCache.cs
- RefType.cs
- OdbcRowUpdatingEvent.cs
- Page.cs
- CachedBitmap.cs
- EntityTypeEmitter.cs
- ListViewItemSelectionChangedEvent.cs
- GroupItemAutomationPeer.cs
- TextElementCollection.cs
- ActivationServices.cs
- Blend.cs
- ConfigurationCollectionAttribute.cs
- DataBindEngine.cs
- AuthenticationConfig.cs
- CharacterBuffer.cs
- NativeActivityTransactionContext.cs
- BoolLiteral.cs
- TraceContext.cs
- WindowsStreamSecurityBindingElement.cs
- DesigntimeLicenseContextSerializer.cs
- AuthorizationRuleCollection.cs
- ResourceDescriptionAttribute.cs
- ForceCopyBuildProvider.cs
- Control.cs
- ToolStripDropDownDesigner.cs
- GacUtil.cs
- FrameworkElement.cs
- Stack.cs
- ProtectedProviderSettings.cs
- ProjectedSlot.cs
- EndEvent.cs
- IgnoreFlushAndCloseStream.cs
- FontWeightConverter.cs
- EditorAttribute.cs
- SuspendDesigner.cs
- RSAOAEPKeyExchangeFormatter.cs
- Visual3D.cs
- IRCollection.cs
- FormsIdentity.cs
- ToggleButtonAutomationPeer.cs
- GeometryGroup.cs
- BooleanKeyFrameCollection.cs
- ToolStripHighContrastRenderer.cs
- XmlSchemaAppInfo.cs
- CryptoKeySecurity.cs
- ILGenerator.cs
- TableLayoutPanelDesigner.cs
- HideDisabledControlAdapter.cs
- Pair.cs
- ExpressionBuilderContext.cs
- MasterPageCodeDomTreeGenerator.cs
- ResourceReferenceKeyNotFoundException.cs
- ProtectedConfigurationSection.cs
- FormsIdentity.cs
- DoubleLinkListEnumerator.cs
- Transform3D.cs
- Compiler.cs
- DbConvert.cs
- ScriptResourceInfo.cs
- Catch.cs
- NodeLabelEditEvent.cs
- UnmanagedHandle.cs
- VariableElement.cs
- AuthenticationModulesSection.cs
- AnonymousIdentificationModule.cs
- StyleXamlTreeBuilder.cs
- GifBitmapDecoder.cs
- MatrixCamera.cs
- ReferenceSchema.cs
- EditorBrowsableAttribute.cs
- AssemblyName.cs
- GPPOINTF.cs
- ReplacementText.cs
- TabletDevice.cs
- ToolConsole.cs
- DoubleCollection.cs
- MissingMethodException.cs
- PagerSettings.cs
- MaterialGroup.cs
- ThrowHelper.cs
- DrawingContextDrawingContextWalker.cs
- LostFocusEventManager.cs
- StandardBindingElement.cs
- __FastResourceComparer.cs
- StandardOleMarshalObject.cs