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
- XmlSchemaType.cs
- DataTableReader.cs
- XmlUrlResolver.cs
- Table.cs
- DataBoundLiteralControl.cs
- TraceContext.cs
- SimpleColumnProvider.cs
- XmlSerializerAssemblyAttribute.cs
- ReadWriteObjectLock.cs
- GeometryCollection.cs
- ColumnWidthChangedEvent.cs
- TraceHelpers.cs
- ListViewGroupItemCollection.cs
- WebPartUtil.cs
- DbReferenceCollection.cs
- XmlHelper.cs
- DbProviderSpecificTypePropertyAttribute.cs
- CompositeScriptReference.cs
- IndexedSelectQueryOperator.cs
- SqlInternalConnectionTds.cs
- TraceRecords.cs
- TraceHandlerErrorFormatter.cs
- Html32TextWriter.cs
- RuleRefElement.cs
- EntityCommandExecutionException.cs
- Matrix3D.cs
- TextDecorationCollectionConverter.cs
- XmlMemberMapping.cs
- DesignerForm.cs
- TypeToken.cs
- UnknownWrapper.cs
- SinglePhaseEnlistment.cs
- Translator.cs
- MenuItemCollection.cs
- SmiSettersStream.cs
- NativeMethods.cs
- SqlClientPermission.cs
- ObjectViewListener.cs
- ThemeDictionaryExtension.cs
- WebBrowserBase.cs
- DetailsViewUpdateEventArgs.cs
- ClientRuntimeConfig.cs
- RIPEMD160.cs
- GroupBox.cs
- OleDbPermission.cs
- loginstatus.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- NameSpaceEvent.cs
- SequentialUshortCollection.cs
- CapabilitiesAssignment.cs
- CustomAttributeBuilder.cs
- ContentPosition.cs
- Transactions.cs
- ClientTarget.cs
- ContentPlaceHolder.cs
- HttpCachePolicyElement.cs
- BaseResourcesBuildProvider.cs
- BindingContext.cs
- ValidationResult.cs
- TdsRecordBufferSetter.cs
- Rotation3DKeyFrameCollection.cs
- HttpProfileGroupBase.cs
- SocketStream.cs
- MasterPage.cs
- TemplateEditingService.cs
- ControlParameter.cs
- ColorConverter.cs
- StatusCommandUI.cs
- SrgsRule.cs
- Native.cs
- UIElementParaClient.cs
- HttpHandlerActionCollection.cs
- DiscoveryMessageSequence11.cs
- SqlCacheDependency.cs
- COM2TypeInfoProcessor.cs
- CompiledRegexRunnerFactory.cs
- RuntimeHandles.cs
- SmtpClient.cs
- ActivityMarkupSerializer.cs
- TextBoxAutoCompleteSourceConverter.cs
- Maps.cs
- ExtensionDataReader.cs
- ToolStripGrip.cs
- StorageComplexTypeMapping.cs
- AccessText.cs
- BufferBuilder.cs
- WindowsBrush.cs
- Lasso.cs
- UriTemplateHelpers.cs
- _ListenerRequestStream.cs
- RuleRef.cs
- EmbeddedMailObject.cs
- HostVisual.cs
- Int32CollectionValueSerializer.cs
- _Connection.cs
- Utils.cs
- EventKeyword.cs
- CompilerState.cs
- ConstraintConverter.cs
- FormsAuthenticationTicket.cs