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
- XmlnsCache.cs
- SmuggledIUnknown.cs
- TreeViewImageIndexConverter.cs
- CryptoApi.cs
- IInstanceContextProvider.cs
- XPathArrayIterator.cs
- _ListenerRequestStream.cs
- BooleanFacetDescriptionElement.cs
- ToolStripStatusLabel.cs
- ConfigurationManagerInternal.cs
- TreeNodeStyleCollection.cs
- ZoneLinkButton.cs
- SqlErrorCollection.cs
- ItemChangedEventArgs.cs
- InvalidAsynchronousStateException.cs
- CollectionBase.cs
- TagMapInfo.cs
- SystemShuttingDownException.cs
- EncodingNLS.cs
- HtmlInputText.cs
- ConnectionStringsExpressionBuilder.cs
- DispatchRuntime.cs
- ComponentDispatcher.cs
- TrackingLocation.cs
- UdpSocket.cs
- InstanceStoreQueryResult.cs
- TimerElapsedEvenArgs.cs
- IssuanceLicense.cs
- PrintPageEvent.cs
- ReferenceService.cs
- EntityDataSourceWizardForm.cs
- X509Certificate2Collection.cs
- RootBrowserWindowProxy.cs
- Configuration.cs
- StreamAsIStream.cs
- HashSet.cs
- PartManifestEntry.cs
- ADConnectionHelper.cs
- CookieParameter.cs
- FacetEnabledSchemaElement.cs
- StrokeCollection.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- QilValidationVisitor.cs
- HttpChannelBindingToken.cs
- ClientSettings.cs
- entityreference_tresulttype.cs
- lengthconverter.cs
- BindingContext.cs
- XPathConvert.cs
- CategoryNameCollection.cs
- Pair.cs
- ConnectionStringsExpressionBuilder.cs
- Select.cs
- TreeNodeCollection.cs
- ButtonChrome.cs
- DoubleKeyFrameCollection.cs
- ListViewEditEventArgs.cs
- LineBreak.cs
- DBParameter.cs
- BaseResourcesBuildProvider.cs
- CalendarButtonAutomationPeer.cs
- SafeEventLogReadHandle.cs
- TypeBrowserDialog.cs
- XmlSchemaExporter.cs
- _BufferOffsetSize.cs
- TraceListener.cs
- SQLConvert.cs
- Point3DCollectionConverter.cs
- ParallelLoopState.cs
- BaseCodeDomTreeGenerator.cs
- InternalBufferOverflowException.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- SuppressMessageAttribute.cs
- SamlAttribute.cs
- _HeaderInfoTable.cs
- DbConnectionPoolIdentity.cs
- SyndicationSerializer.cs
- RtfControlWordInfo.cs
- DataGridColumnHeaderCollection.cs
- BackStopAuthenticationModule.cs
- ProgressBarAutomationPeer.cs
- Literal.cs
- GeneratedContractType.cs
- TemplatedMailWebEventProvider.cs
- RemoteHelper.cs
- SpellCheck.cs
- HttpRequest.cs
- JavascriptXmlWriterWrapper.cs
- IFlowDocumentViewer.cs
- CodeCommentStatement.cs
- HTTPNotFoundHandler.cs
- Point3DConverter.cs
- XmlSchemaComplexContent.cs
- CompiledELinqQueryState.cs
- ReverseComparer.cs
- httpapplicationstate.cs
- QilReplaceVisitor.cs
- GridViewPageEventArgs.cs
- XmlValidatingReaderImpl.cs
- ObjectStateManagerMetadata.cs