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
- AmbientProperties.cs
- XmlAnyElementAttribute.cs
- DesignTimeData.cs
- AttributedMetaModel.cs
- EndEvent.cs
- SecurityTokenProvider.cs
- HandlerElement.cs
- SafeThreadHandle.cs
- SimpleApplicationHost.cs
- ClientRolePrincipal.cs
- MembershipUser.cs
- CacheMemory.cs
- ListViewHitTestInfo.cs
- ReadOnlyAttribute.cs
- ConstructorNeedsTagAttribute.cs
- XmlChoiceIdentifierAttribute.cs
- ThreadPool.cs
- DataGridViewMethods.cs
- MarshalByRefObject.cs
- XmlTypeAttribute.cs
- SqlDataSourceAdvancedOptionsForm.cs
- VariantWrapper.cs
- StreamGeometry.cs
- WmlImageAdapter.cs
- DBDataPermissionAttribute.cs
- ToolStripButton.cs
- PropertyPathConverter.cs
- BatchWriter.cs
- UserControlBuildProvider.cs
- ExceptionValidationRule.cs
- DtdParser.cs
- Pen.cs
- ListItemCollection.cs
- CharKeyFrameCollection.cs
- TargetException.cs
- elementinformation.cs
- RegexTypeEditor.cs
- Win32Exception.cs
- GradientBrush.cs
- SubpageParagraph.cs
- CheckBoxStandardAdapter.cs
- SafeViewOfFileHandle.cs
- ErrorsHelper.cs
- TextPointer.cs
- BidOverLoads.cs
- NetCodeGroup.cs
- KnownTypes.cs
- BindStream.cs
- Decimal.cs
- MeshGeometry3D.cs
- FixedElement.cs
- XamlParser.cs
- QuadraticBezierSegment.cs
- Pair.cs
- TagMapCollection.cs
- SecurityCriticalDataForSet.cs
- GPRECTF.cs
- NoneExcludedImageIndexConverter.cs
- ConsoleTraceListener.cs
- EncodingStreamWrapper.cs
- IPPacketInformation.cs
- IPAddressCollection.cs
- DataBoundControlHelper.cs
- WinFormsComponentEditor.cs
- Vector3DCollection.cs
- returneventsaver.cs
- ImpersonationContext.cs
- DataGridParentRows.cs
- FixedPageAutomationPeer.cs
- MetaModel.cs
- Expander.cs
- AdCreatedEventArgs.cs
- CalendarDateChangedEventArgs.cs
- PeerTransportListenAddressValidatorAttribute.cs
- AddressHeader.cs
- FigureParagraph.cs
- ExpandCollapseProviderWrapper.cs
- VariableAction.cs
- MatrixUtil.cs
- TypedReference.cs
- RoleManagerEventArgs.cs
- ChineseLunisolarCalendar.cs
- MemberListBinding.cs
- DesigntimeLicenseContextSerializer.cs
- ProcessRequestArgs.cs
- MethodSignatureGenerator.cs
- DrawTreeNodeEventArgs.cs
- TableItemStyle.cs
- MailSettingsSection.cs
- ButtonField.cs
- EventSinkHelperWriter.cs
- List.cs
- EventTrigger.cs
- Compress.cs
- SubMenuStyleCollection.cs
- XPathScanner.cs
- formatter.cs
- NavigationPropertyAccessor.cs
- CreateSequence.cs
- tooltip.cs