Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / UI / ViewStateModeByIdAttribute.cs / 1 / ViewStateModeByIdAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.Web.UI { using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Security.Permissions; [AspNetHostingPermission(SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)] [AttributeUsage(AttributeTargets.Class)] public sealed class ViewStateModeByIdAttribute : Attribute { static Hashtable _viewStateIdTypes = Hashtable.Synchronized(new Hashtable()); public ViewStateModeByIdAttribute() { } internal static bool IsEnabled(Type type) { if (!_viewStateIdTypes.ContainsKey(type)) { System.ComponentModel.AttributeCollection attrs = TypeDescriptor.GetAttributes(type); ViewStateModeByIdAttribute attr = (ViewStateModeByIdAttribute)attrs[typeof(ViewStateModeByIdAttribute)]; _viewStateIdTypes[type] = (attr != null); } return (bool)_viewStateIdTypes[type]; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlWriterTraceListener.cs
- AbstractSvcMapFileLoader.cs
- SqlUtil.cs
- sqlnorm.cs
- SafeIUnknown.cs
- SqlDeflator.cs
- Int32Storage.cs
- FileRegion.cs
- CodeExpressionCollection.cs
- Itemizer.cs
- LayoutEngine.cs
- ScriptingScriptResourceHandlerSection.cs
- ObjectStorage.cs
- SqlUtils.cs
- SmiRecordBuffer.cs
- sqlnorm.cs
- HttpsHostedTransportConfiguration.cs
- BinaryCommonClasses.cs
- ServiceAppDomainAssociationProvider.cs
- IsolatedStorageFilePermission.cs
- XmlSchemaIdentityConstraint.cs
- TreeView.cs
- EncodingStreamWrapper.cs
- sqlpipe.cs
- WebPartChrome.cs
- AuthenticateEventArgs.cs
- Control.cs
- Propagator.ExtentPlaceholderCreator.cs
- ImageIndexConverter.cs
- _RequestCacheProtocol.cs
- XPathDocumentIterator.cs
- IERequestCache.cs
- ThreadExceptionEvent.cs
- ImpersonateTokenRef.cs
- SystemDropShadowChrome.cs
- TableLayoutSettings.cs
- UnknownWrapper.cs
- MouseEventArgs.cs
- BinaryMethodMessage.cs
- PkcsUtils.cs
- ServiceOperation.cs
- SqlDataSourceView.cs
- HttpFileCollection.cs
- ValidationEventArgs.cs
- QueueAccessMode.cs
- DropDownHolder.cs
- HttpModuleAction.cs
- UpdateManifestForBrowserApplication.cs
- __TransparentProxy.cs
- MenuScrollingVisibilityConverter.cs
- BigInt.cs
- TextModifierScope.cs
- BaseAddressPrefixFilterElementCollection.cs
- CollectionViewProxy.cs
- OrderedDictionary.cs
- ConstraintConverter.cs
- connectionpool.cs
- AsyncParams.cs
- SiteMapDataSource.cs
- DeploymentExceptionMapper.cs
- FontDifferentiator.cs
- DataPagerFieldItem.cs
- CollectionConverter.cs
- WindowsFont.cs
- ActiveXMessageFormatter.cs
- CommonProperties.cs
- Label.cs
- DataGridView.cs
- StateDesigner.CommentLayoutGlyph.cs
- XmlSerializationWriter.cs
- SecurityHeader.cs
- Parameter.cs
- SimpleHandlerFactory.cs
- XmlSchemaSet.cs
- DotAtomReader.cs
- Header.cs
- ApplicationInterop.cs
- ReturnEventArgs.cs
- BitmapVisualManager.cs
- ImageField.cs
- TraceData.cs
- FontClient.cs
- MulticastNotSupportedException.cs
- PasswordDeriveBytes.cs
- Translator.cs
- SevenBitStream.cs
- CellCreator.cs
- EntityDataSourceReferenceGroup.cs
- AttributeXamlType.cs
- SecurityTokenProvider.cs
- ScrollChrome.cs
- ContractsBCL.cs
- FormsAuthentication.cs
- SafeArrayRankMismatchException.cs
- MatrixIndependentAnimationStorage.cs
- BaseTreeIterator.cs
- DSASignatureDeformatter.cs
- SignatureConfirmations.cs
- PopupEventArgs.cs
- Roles.cs