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
- BorderGapMaskConverter.cs
- SkipQueryOptionExpression.cs
- PrinterSettings.cs
- XamlTemplateSerializer.cs
- EventProxy.cs
- TextAutomationPeer.cs
- ColumnMapVisitor.cs
- Clipboard.cs
- CustomAttributeSerializer.cs
- PointCollectionValueSerializer.cs
- Currency.cs
- ListViewUpdatedEventArgs.cs
- PreviewKeyDownEventArgs.cs
- ProgressChangedEventArgs.cs
- BitmapEffect.cs
- AsymmetricSignatureDeformatter.cs
- ViewStateModeByIdAttribute.cs
- IdentifierService.cs
- OleDbWrapper.cs
- DataReceivedEventArgs.cs
- DriveInfo.cs
- ComponentChangingEvent.cs
- SimpleHandlerFactory.cs
- UDPClient.cs
- LogExtent.cs
- DataGridViewSelectedColumnCollection.cs
- EventToken.cs
- TextRunCache.cs
- QilGenerator.cs
- AdornerDecorator.cs
- ActivityCollectionMarkupSerializer.cs
- BoolExpr.cs
- TextSpanModifier.cs
- ViewValidator.cs
- SendActivityEventArgs.cs
- SmiEventSink_Default.cs
- ToolboxBitmapAttribute.cs
- DodSequenceMerge.cs
- Script.cs
- SpeechAudioFormatInfo.cs
- ActivitySurrogateSelector.cs
- WindowsImpersonationContext.cs
- DbConnectionPoolOptions.cs
- MetadataWorkspace.cs
- SchemaImporterExtensionElement.cs
- CFGGrammar.cs
- RelationHandler.cs
- Win32SafeHandles.cs
- userdatakeys.cs
- TraceSection.cs
- DataTableTypeConverter.cs
- AsnEncodedData.cs
- X509Certificate.cs
- HttpCookiesSection.cs
- FolderLevelBuildProviderCollection.cs
- FileNameEditor.cs
- AttachInfo.cs
- ToolboxDataAttribute.cs
- ClientConvert.cs
- ObjectContextServiceProvider.cs
- MappedMetaModel.cs
- PropertyValueChangedEvent.cs
- HttpException.cs
- LeafCellTreeNode.cs
- QilBinary.cs
- Helpers.cs
- SafeBitVector32.cs
- AlphabeticalEnumConverter.cs
- TextDecorationLocationValidation.cs
- SqlCachedBuffer.cs
- RowSpanVector.cs
- NegotiateStream.cs
- XmlAtomicValue.cs
- WrappedIUnknown.cs
- TaskExceptionHolder.cs
- DocumentViewer.cs
- TextAnchor.cs
- SmtpAuthenticationManager.cs
- Point3DAnimation.cs
- DocumentApplicationJournalEntry.cs
- TaskFileService.cs
- SymmetricKey.cs
- CacheSection.cs
- MDIControlStrip.cs
- WindowsRegion.cs
- GridItemPattern.cs
- FullTrustAssembly.cs
- XmlHierarchicalEnumerable.cs
- FileDialogCustomPlacesCollection.cs
- SqlDataSourceWizardForm.cs
- NonVisualControlAttribute.cs
- NewItemsContextMenuStrip.cs
- SignatureDescription.cs
- SystemIcmpV4Statistics.cs
- QEncodedStream.cs
- CollectionBuilder.cs
- CustomErrorCollection.cs
- XmlSerializationWriter.cs
- SchemaType.cs
- Empty.cs