Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ConsoleEntryPoint.cs
- DbReferenceCollection.cs
- StyleHelper.cs
- DataObjectMethodAttribute.cs
- ResourcePermissionBaseEntry.cs
- TokenizerHelper.cs
- DataGridState.cs
- TempEnvironment.cs
- SQLDouble.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TextSelectionHighlightLayer.cs
- TypeInitializationException.cs
- ColorAnimation.cs
- milrender.cs
- Light.cs
- xmlsaver.cs
- HTTPNotFoundHandler.cs
- DataGridTextBox.cs
- Models.cs
- SystemGatewayIPAddressInformation.cs
- DynamicDataRouteHandler.cs
- Vector3DCollection.cs
- FormsAuthenticationConfiguration.cs
- StateManagedCollection.cs
- ListenerSingletonConnectionReader.cs
- LineGeometry.cs
- XmlTextReaderImpl.cs
- TextProviderWrapper.cs
- XmlDataImplementation.cs
- AdapterUtil.cs
- ProjectionCamera.cs
- AsyncDataRequest.cs
- OrderedEnumerableRowCollection.cs
- PageOutputQuality.cs
- Queue.cs
- DataGridViewAccessibleObject.cs
- StylusPointProperty.cs
- BindableTemplateBuilder.cs
- FormatterServices.cs
- FileCodeGroup.cs
- MultiByteCodec.cs
- RealizationDrawingContextWalker.cs
- DbProviderFactoriesConfigurationHandler.cs
- ScrollBarAutomationPeer.cs
- OdbcInfoMessageEvent.cs
- EntityDataSourceSelectingEventArgs.cs
- RoutedEvent.cs
- FormViewInsertEventArgs.cs
- BehaviorEditorPart.cs
- TimerTable.cs
- XmlNamespaceMapping.cs
- ScrollContentPresenter.cs
- SrgsDocumentParser.cs
- CorrelationTokenInvalidatedHandler.cs
- BasicViewGenerator.cs
- LocatorPartList.cs
- _SecureChannel.cs
- IndexOutOfRangeException.cs
- ContextMenuAutomationPeer.cs
- ColumnWidthChangingEvent.cs
- X509CertificateCollection.cs
- DbDataAdapter.cs
- PreviewKeyDownEventArgs.cs
- ViewGenerator.cs
- SerializationInfo.cs
- DynamicScriptObject.cs
- RequiredAttributeAttribute.cs
- XmlSchemaSequence.cs
- NativeActivityContext.cs
- TrackingExtract.cs
- PropertyDescriptorGridEntry.cs
- Point3DAnimationBase.cs
- RawContentTypeMapper.cs
- TreeNodeEventArgs.cs
- Condition.cs
- BaseValidatorDesigner.cs
- DataRecordObjectView.cs
- ResourceManagerWrapper.cs
- CategoryGridEntry.cs
- PageThemeBuildProvider.cs
- ControlAdapter.cs
- BamlLocalizationDictionary.cs
- PreservationFileReader.cs
- XamlParser.cs
- DoubleCollection.cs
- LiteralText.cs
- SchemaNotation.cs
- SqlClientMetaDataCollectionNames.cs
- FileRecordSequence.cs
- DataRowCollection.cs
- CachedTypeface.cs
- TransformedBitmap.cs
- DataGridDesigner.cs
- DataGridToolTip.cs
- HttpFileCollectionBase.cs
- CngKey.cs
- SqlStream.cs
- StandardCommands.cs
- PageContentCollection.cs
- AddingNewEventArgs.cs