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
- AvTrace.cs
- CodeSnippetExpression.cs
- WindowsToolbar.cs
- Regex.cs
- WarningException.cs
- HyperLinkColumn.cs
- ToolboxDataAttribute.cs
- CodeEventReferenceExpression.cs
- StatusStrip.cs
- RubberbandSelector.cs
- LeafCellTreeNode.cs
- CanExecuteRoutedEventArgs.cs
- Input.cs
- StagingAreaInputItem.cs
- DecoderReplacementFallback.cs
- PermissionAttributes.cs
- ViewCellRelation.cs
- CacheMode.cs
- ValueChangedEventManager.cs
- ReadOnlyPropertyMetadata.cs
- COM2PropertyDescriptor.cs
- NegatedCellConstant.cs
- AppDomainCompilerProxy.cs
- PolyLineSegment.cs
- DefaultTextStore.cs
- HttpServerVarsCollection.cs
- ParameterModifier.cs
- DBCommandBuilder.cs
- ThreadInterruptedException.cs
- ConvertBinder.cs
- NumericPagerField.cs
- TreeNodeBindingCollection.cs
- InheritanceContextChangedEventManager.cs
- X509Certificate2Collection.cs
- ExpandCollapseProviderWrapper.cs
- GlyphTypeface.cs
- DependentList.cs
- EmulateRecognizeCompletedEventArgs.cs
- OverflowException.cs
- TraceContext.cs
- MenuItemCollectionEditorDialog.cs
- MethodBuilderInstantiation.cs
- SmiEventSink_Default.cs
- TickBar.cs
- CodeAttributeArgument.cs
- DbConnectionPoolCounters.cs
- ComponentDispatcherThread.cs
- MDIClient.cs
- ProtectedConfigurationSection.cs
- RadioButtonAutomationPeer.cs
- XComponentModel.cs
- InternalsVisibleToAttribute.cs
- ComponentResourceKey.cs
- DataError.cs
- SemanticAnalyzer.cs
- StylusTip.cs
- SqlParameterCollection.cs
- TypeReference.cs
- ReadWriteSpinLock.cs
- FrameworkElementFactoryMarkupObject.cs
- ClickablePoint.cs
- ImageDrawing.cs
- MimeTypeMapper.cs
- TextSpanModifier.cs
- XsdCachingReader.cs
- SecurityTokenSerializer.cs
- AppendHelper.cs
- SecurityRuntime.cs
- IconConverter.cs
- FieldCollectionEditor.cs
- MergePropertyDescriptor.cs
- StringValueSerializer.cs
- FileVersionInfo.cs
- MetadataArtifactLoaderComposite.cs
- ImageInfo.cs
- WorkflowNamespace.cs
- FileDialogCustomPlace.cs
- LongValidatorAttribute.cs
- XamlReader.cs
- OptionalMessageQuery.cs
- Subset.cs
- SubqueryRules.cs
- wmiutil.cs
- StructuralObject.cs
- ToolStripDropTargetManager.cs
- FieldNameLookup.cs
- RawStylusInput.cs
- MissingManifestResourceException.cs
- DocumentPageViewAutomationPeer.cs
- RepeaterItemCollection.cs
- IndexerReference.cs
- Visual3DCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- FileClassifier.cs
- SqlComparer.cs
- RelationshipNavigation.cs
- WebScriptMetadataFormatter.cs
- CurrentChangingEventManager.cs
- DataChangedEventManager.cs
- ReceiveMessageRecord.cs