Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Stack.cs
- SqlClientWrapperSmiStreamChars.cs
- FileRegion.cs
- ConfigUtil.cs
- NetworkInformationPermission.cs
- NamedElement.cs
- KeySpline.cs
- ToolBarDesigner.cs
- SessionParameter.cs
- TabPage.cs
- TextEmbeddedObject.cs
- PositiveTimeSpanValidator.cs
- CommandBindingCollection.cs
- ACE.cs
- CacheDependency.cs
- OleDbErrorCollection.cs
- SingleKeyFrameCollection.cs
- SchemaTableOptionalColumn.cs
- ItemDragEvent.cs
- EntryPointNotFoundException.cs
- ObjectDisposedException.cs
- WebControlsSection.cs
- TreeNodeStyle.cs
- CompilerError.cs
- KeyTime.cs
- OperationResponse.cs
- XmlEncodedRawTextWriter.cs
- BaseTemplateBuildProvider.cs
- EntityObject.cs
- ConnectionConsumerAttribute.cs
- PackWebRequest.cs
- ToolboxCategory.cs
- LeaseManager.cs
- WebPartAddingEventArgs.cs
- ValidationSummary.cs
- SecurityManager.cs
- UdpChannelFactory.cs
- SamlConstants.cs
- KeyInstance.cs
- GridViewHeaderRowPresenter.cs
- ConstructorNeedsTagAttribute.cs
- KeyEvent.cs
- ConfigurationLockCollection.cs
- ClientSession.cs
- DeploymentSection.cs
- DataSourceSelectArguments.cs
- KnownTypesHelper.cs
- FormatConvertedBitmap.cs
- OneOfConst.cs
- GroupBox.cs
- TextContainerHelper.cs
- FtpRequestCacheValidator.cs
- DataSourceHelper.cs
- HtmlInputText.cs
- MeasurementDCInfo.cs
- TextureBrush.cs
- BezierSegment.cs
- CodePageUtils.cs
- PersonalizationProvider.cs
- CompositeControl.cs
- HyperLinkColumn.cs
- VirtualizedItemProviderWrapper.cs
- HMACMD5.cs
- CalendarAutomationPeer.cs
- DesignOnlyAttribute.cs
- DataPagerCommandEventArgs.cs
- SerializationEventsCache.cs
- StylusPointProperty.cs
- HostedTransportConfigurationBase.cs
- SelfIssuedAuthAsymmetricKey.cs
- ExceptionUtil.cs
- CompiledIdentityConstraint.cs
- ThrowHelper.cs
- DelayedRegex.cs
- LogicalExpr.cs
- LogEntrySerializationException.cs
- XmlMembersMapping.cs
- StrokeCollectionConverter.cs
- Highlights.cs
- QueryStack.cs
- CodeDOMUtility.cs
- TextRange.cs
- TextServicesDisplayAttribute.cs
- FileDialog_Vista.cs
- MarkedHighlightComponent.cs
- TreeNodeCollectionEditorDialog.cs
- WebHttpDispatchOperationSelector.cs
- precedingquery.cs
- XmlBoundElement.cs
- FrameworkElementFactory.cs
- PropertyItem.cs
- View.cs
- ScalarOps.cs
- XmlAnyElementAttributes.cs
- DocumentViewerAutomationPeer.cs
- FunctionDescription.cs
- ListenerSessionConnectionReader.cs
- ReferencedType.cs
- TreeIterator.cs
- SamlAuthenticationClaimResource.cs