Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / xsp / System / Web / UI / WebControls / SiteMapDataSourceView.cs / 1 / SiteMapDataSourceView.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System.Collections; using System.Security.Permissions; using System.Web; using System.Web.UI; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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.Security.Permissions; using System.Web; using System.Web.UI; [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
- followingquery.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- EditorPart.cs
- TextEmbeddedObject.cs
- XmlAnyElementAttribute.cs
- DataObject.cs
- VerbConverter.cs
- StreamWriter.cs
- InfoCardArgumentException.cs
- ContextCorrelationInitializer.cs
- BadImageFormatException.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- PackUriHelper.cs
- LocalIdKeyIdentifierClause.cs
- DataGridViewCellPaintingEventArgs.cs
- ProfilePropertyMetadata.cs
- XPathParser.cs
- DrawingVisualDrawingContext.cs
- ProtocolsSection.cs
- ReliableSessionElement.cs
- PointAnimationClockResource.cs
- NativeMsmqMessage.cs
- WorkflowQueuingService.cs
- Rfc2898DeriveBytes.cs
- Peer.cs
- DoubleAnimationClockResource.cs
- SharedUtils.cs
- CompilationPass2Task.cs
- InfoCardListRequest.cs
- DoubleAnimationBase.cs
- LassoSelectionBehavior.cs
- CodeGenerator.cs
- XmlAtomErrorReader.cs
- XmlConvert.cs
- BindingSource.cs
- TracingConnectionListener.cs
- GridViewPageEventArgs.cs
- QfeChecker.cs
- StrokeNodeEnumerator.cs
- PrintingPermissionAttribute.cs
- CodeIdentifier.cs
- WriteableBitmap.cs
- XmlSchemaExternal.cs
- CallbackHandler.cs
- ResumeStoryboard.cs
- CanExecuteRoutedEventArgs.cs
- ServiceModelActivationSectionGroup.cs
- WebPartsSection.cs
- DbDeleteCommandTree.cs
- FontEmbeddingManager.cs
- ToolStripContainer.cs
- ParseNumbers.cs
- DataControlCommands.cs
- GZipDecoder.cs
- ContentType.cs
- TraceXPathNavigator.cs
- LinqToSqlWrapper.cs
- XmlNamespaceDeclarationsAttribute.cs
- parserscommon.cs
- TableItemPattern.cs
- X509SecurityToken.cs
- IOException.cs
- ClassicBorderDecorator.cs
- HierarchicalDataBoundControl.cs
- ElementsClipboardData.cs
- TextTreeDeleteContentUndoUnit.cs
- Cursors.cs
- InternalsVisibleToAttribute.cs
- CollectionChange.cs
- SectionInput.cs
- ResourceKey.cs
- SrgsSubset.cs
- XmlSchemaGroup.cs
- StorageAssociationTypeMapping.cs
- ConfigurationElementCollection.cs
- Vector3DIndependentAnimationStorage.cs
- SqlError.cs
- ZoneButton.cs
- MatrixAnimationBase.cs
- ResolvedKeyFrameEntry.cs
- VersionedStreamOwner.cs
- RuntimeConfig.cs
- SqlNotificationRequest.cs
- TypefaceMetricsCache.cs
- XmlJsonWriter.cs
- XmlCustomFormatter.cs
- InsufficientMemoryException.cs
- XmlWrappingWriter.cs
- HttpApplicationFactory.cs
- QueryContinueDragEventArgs.cs
- DataGridRowHeader.cs
- NonPrimarySelectionGlyph.cs
- IndexerNameAttribute.cs
- SafeNativeMethods.cs
- ApplicationSecurityManager.cs
- BamlMapTable.cs
- NavigatingCancelEventArgs.cs
- XmlILStorageConverter.cs
- ValueHandle.cs
- CodeGenerator.cs