Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapDataSourceView.cs / 1305376 / SiteMapDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Web; using System.Web.UI; public class SiteMapDataSourceView : DataSourceView { private SiteMapNodeCollection _collection; private SiteMapDataSource _owner; public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNode node) : base(owner, name) { _owner = owner; _collection = new SiteMapNodeCollection(node); } public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNodeCollection collection) : base(owner, name) { _owner = owner; _collection = collection; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _collection; } protected override void OnDataSourceViewChanged(EventArgs e) { _collection = _owner.GetPathNodeCollection(Name); base.OnDataSourceViewChanged(e); } public IEnumerable Select(DataSourceSelectArguments arguments) { return ExecuteSelect(arguments); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Web; using System.Web.UI; public class SiteMapDataSourceView : DataSourceView { private SiteMapNodeCollection _collection; private SiteMapDataSource _owner; public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNode node) : base(owner, name) { _owner = owner; _collection = new SiteMapNodeCollection(node); } public SiteMapDataSourceView(SiteMapDataSource owner, string name, SiteMapNodeCollection collection) : base(owner, name) { _owner = owner; _collection = collection; } protected internal override IEnumerable ExecuteSelect(DataSourceSelectArguments arguments) { arguments.RaiseUnsupportedCapabilitiesError(this); return _collection; } protected override void OnDataSourceViewChanged(EventArgs e) { _collection = _owner.GetPathNodeCollection(Name); base.OnDataSourceViewChanged(e); } public IEnumerable Select(DataSourceSelectArguments arguments) { return ExecuteSelect(arguments); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509SecurityTokenProvider.cs
- __Filters.cs
- Win32PrintDialog.cs
- SoapMessage.cs
- StaticFileHandler.cs
- CommandConverter.cs
- ZoneIdentityPermission.cs
- _SslSessionsCache.cs
- HttpCookie.cs
- ErrorHandler.cs
- UnionExpr.cs
- TogglePattern.cs
- SoapAttributes.cs
- BitmapEffectGeneralTransform.cs
- DbConnectionStringCommon.cs
- ValidationError.cs
- VirtualPath.cs
- basecomparevalidator.cs
- UiaCoreProviderApi.cs
- RectValueSerializer.cs
- CngAlgorithm.cs
- RoleService.cs
- WebPartMovingEventArgs.cs
- Geometry.cs
- X509CertificateValidator.cs
- ApplicationId.cs
- ActiveXContainer.cs
- validation.cs
- AudienceUriMode.cs
- MulticastDelegate.cs
- TokenFactoryCredential.cs
- BufferCache.cs
- controlskin.cs
- IndexedEnumerable.cs
- SQLDecimalStorage.cs
- ProcessModule.cs
- ResourceType.cs
- EventToken.cs
- VisualBrush.cs
- NullReferenceException.cs
- Help.cs
- XmlAttributeProperties.cs
- ResourceDictionary.cs
- XmlCompatibilityReader.cs
- RectAnimationBase.cs
- XhtmlBasicImageAdapter.cs
- Literal.cs
- DataGridComponentEditor.cs
- PriorityBinding.cs
- XmlTextReaderImplHelpers.cs
- DecimalStorage.cs
- StringAttributeCollection.cs
- CLSCompliantAttribute.cs
- DigestTraceRecordHelper.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- HttpCookieCollection.cs
- ResourcePermissionBaseEntry.cs
- LogFlushAsyncResult.cs
- KeyedQueue.cs
- PropertyStore.cs
- AuditLogLocation.cs
- Int32Collection.cs
- TypeConverterAttribute.cs
- MinMaxParagraphWidth.cs
- IconBitmapDecoder.cs
- FixUpCollection.cs
- XmlSiteMapProvider.cs
- SchemaCollectionPreprocessor.cs
- OleDbDataAdapter.cs
- XmlSchemaSet.cs
- EffectiveValueEntry.cs
- LifetimeServices.cs
- xmlsaver.cs
- Rights.cs
- DataGridViewButtonCell.cs
- MultiView.cs
- WindowsListViewItemStartMenu.cs
- PropertyDescriptorComparer.cs
- TextBoxBase.cs
- EmptyReadOnlyDictionaryInternal.cs
- RouteParameter.cs
- StructuredTypeInfo.cs
- Misc.cs
- TrackingWorkflowEventArgs.cs
- SchemaNamespaceManager.cs
- IList.cs
- QEncodedStream.cs
- MapPathBasedVirtualPathProvider.cs
- Menu.cs
- CheckoutException.cs
- SpellerError.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- versioninfo.cs
- ThousandthOfEmRealDoubles.cs
- WsatServiceCertificate.cs
- Hex.cs
- DocumentViewerBaseAutomationPeer.cs
- ChainOfDependencies.cs
- ReflectEventDescriptor.cs
- VisualBrush.cs