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 / 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
- PackageFilter.cs
- TimeoutValidationAttribute.cs
- ServiceDebugElement.cs
- ImportDesigner.xaml.cs
- GridViewSelectEventArgs.cs
- CalendarAutoFormat.cs
- StoryFragments.cs
- ConfigXmlWhitespace.cs
- BufferedGraphics.cs
- ModelMemberCollection.cs
- UnhandledExceptionEventArgs.cs
- MappingItemCollection.cs
- MainMenu.cs
- GroupItem.cs
- Point3DAnimationBase.cs
- MultilineStringConverter.cs
- MimeTypePropertyAttribute.cs
- RijndaelManaged.cs
- Reference.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- FlowPosition.cs
- AccessedThroughPropertyAttribute.cs
- LinkButton.cs
- URLIdentityPermission.cs
- EmptyCollection.cs
- WebPartConnectionsCancelVerb.cs
- _SslSessionsCache.cs
- OdbcConnectionFactory.cs
- DataGridRow.cs
- GestureRecognitionResult.cs
- DrawingImage.cs
- SchemaInfo.cs
- ToolboxItemImageConverter.cs
- WindowManager.cs
- SelectionEditor.cs
- ImageList.cs
- DocumentViewerBase.cs
- CodeTypeReferenceExpression.cs
- SqlProfileProvider.cs
- ConfigXmlCDataSection.cs
- ModuleBuilder.cs
- BaseValidator.cs
- StringAttributeCollection.cs
- OleDbDataAdapter.cs
- SqlBuffer.cs
- UpdatePanelTrigger.cs
- QilPatternVisitor.cs
- ListViewSortEventArgs.cs
- SymbolTable.cs
- HtmlTextArea.cs
- __FastResourceComparer.cs
- RectValueSerializer.cs
- Empty.cs
- SubpageParaClient.cs
- Package.cs
- Grid.cs
- RuntimeEnvironment.cs
- BaseDataBoundControl.cs
- EncoderExceptionFallback.cs
- AnnouncementEventArgs.cs
- NonParentingControl.cs
- XmlIlGenerator.cs
- ForEachAction.cs
- ConnectionPointCookie.cs
- CaseInsensitiveComparer.cs
- CounterSampleCalculator.cs
- WinFormsComponentEditor.cs
- DependencyPropertyChangedEventArgs.cs
- ComponentResourceManager.cs
- JsonEnumDataContract.cs
- CodeTypeDelegate.cs
- ProtocolsConfiguration.cs
- CapabilitiesState.cs
- XmlSchemaValidator.cs
- StylusCaptureWithinProperty.cs
- FtpRequestCacheValidator.cs
- SkewTransform.cs
- UIPropertyMetadata.cs
- _Events.cs
- MasterPage.cs
- ComPlusInstanceContextInitializer.cs
- AddingNewEventArgs.cs
- SafeLocalMemHandle.cs
- SingleResultAttribute.cs
- InputLanguageProfileNotifySink.cs
- DefinitionUpdate.cs
- HighlightVisual.cs
- Hash.cs
- SqlNodeAnnotation.cs
- ColumnHeaderConverter.cs
- ColumnResizeAdorner.cs
- SamlSerializer.cs
- XamlRtfConverter.cs
- DbParameterCollectionHelper.cs
- LinqDataSourceView.cs
- FileDataSourceCache.cs
- NativeMethods.cs
- IdentityModelStringsVersion1.cs
- Latin1Encoding.cs
- UrlPropertyAttribute.cs