Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. //------------------------------------------------------------------------------ //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.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
- GroupBoxRenderer.cs
- OdbcParameterCollection.cs
- LocatorBase.cs
- PersonalizableAttribute.cs
- BinaryReader.cs
- SafeEventLogReadHandle.cs
- InternalControlCollection.cs
- MessageContractAttribute.cs
- DataGridViewColumnHeaderCell.cs
- SimpleColumnProvider.cs
- SystemException.cs
- ScriptBehaviorDescriptor.cs
- ToolStripDropDownItem.cs
- XhtmlStyleClass.cs
- ToolStripPanelSelectionGlyph.cs
- BufferAllocator.cs
- UndirectedGraph.cs
- MediaCommands.cs
- DataBindingHandlerAttribute.cs
- SecurityTokenProvider.cs
- MatrixTransform3D.cs
- PropertiesTab.cs
- Vector.cs
- RowCache.cs
- StringFunctions.cs
- EntityModelSchemaGenerator.cs
- CircleHotSpot.cs
- SoapEnumAttribute.cs
- SwitchLevelAttribute.cs
- AsyncSerializedWorker.cs
- WindowsPen.cs
- ComponentResourceKeyConverter.cs
- ComAwareEventInfo.cs
- HuffModule.cs
- StringValueSerializer.cs
- XamlFrame.cs
- DisposableCollectionWrapper.cs
- PersonalizationEntry.cs
- PropertyToken.cs
- CharAnimationUsingKeyFrames.cs
- EntityDataSourceColumn.cs
- RowUpdatingEventArgs.cs
- SQLInt64Storage.cs
- AssertValidation.cs
- ReadingWritingEntityEventArgs.cs
- EmptyElement.cs
- BamlTreeUpdater.cs
- NamespaceQuery.cs
- ImageMap.cs
- OSEnvironmentHelper.cs
- MimeMapping.cs
- CompoundFileIOPermission.cs
- WpfSharedXamlSchemaContext.cs
- ConfigurationStrings.cs
- path.cs
- HtmlInputPassword.cs
- UserControl.cs
- QilCloneVisitor.cs
- SqlDataRecord.cs
- DiscardableAttribute.cs
- ResourceReferenceExpression.cs
- TrackingServices.cs
- HttpInputStream.cs
- VisualStyleTypesAndProperties.cs
- XPathSingletonIterator.cs
- Compress.cs
- MemoryFailPoint.cs
- StatusBarPanel.cs
- TdsValueSetter.cs
- TraceRecord.cs
- InvalidEnumArgumentException.cs
- EnumMember.cs
- _HeaderInfo.cs
- SliderAutomationPeer.cs
- InkSerializer.cs
- DbProviderFactoriesConfigurationHandler.cs
- AuthenticationService.cs
- Win32SafeHandles.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- PrintPreviewDialog.cs
- ConfigsHelper.cs
- XmlBinaryReader.cs
- OutputCacheProfileCollection.cs
- DependencyPropertyConverter.cs
- MetabaseSettings.cs
- DynamicResourceExtensionConverter.cs
- FixedDocumentSequencePaginator.cs
- CompositeDesignerAccessibleObject.cs
- CustomAttribute.cs
- DataGridBeginningEditEventArgs.cs
- StatusBar.cs
- ScriptResourceInfo.cs
- XPathAncestorIterator.cs
- GroupBox.cs
- AttachedProperty.cs
- grammarelement.cs
- StateChangeEvent.cs
- SqlSelectStatement.cs
- XmlSubtreeReader.cs
- SqlCacheDependencyDatabaseCollection.cs