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
- TypedRowHandler.cs
- InstallHelper.cs
- CheckBoxList.cs
- BulletChrome.cs
- TextModifier.cs
- BitmapCacheBrush.cs
- ToolStripItemImageRenderEventArgs.cs
- PointKeyFrameCollection.cs
- SerializerProvider.cs
- sapiproxy.cs
- TrackingAnnotationCollection.cs
- ConnectionsZone.cs
- smtpconnection.cs
- ServiceObjectContainer.cs
- LongTypeConverter.cs
- DataGridCommandEventArgs.cs
- SortedDictionary.cs
- XmlHierarchicalEnumerable.cs
- SharedPersonalizationStateInfo.cs
- BaseTemplateCodeDomTreeGenerator.cs
- MenuEventArgs.cs
- Compiler.cs
- CompositeControl.cs
- RulePatternOps.cs
- CompModHelpers.cs
- TextBoxBase.cs
- OleDbPropertySetGuid.cs
- WriteFileContext.cs
- TimerElapsedEvenArgs.cs
- Literal.cs
- OleDbFactory.cs
- ErrorReporting.cs
- control.ime.cs
- AdapterDictionary.cs
- LayoutTable.cs
- Events.cs
- DocumentXPathNavigator.cs
- SynchronizingStream.cs
- XmlSchemaGroup.cs
- RegisteredDisposeScript.cs
- AssemblyBuilderData.cs
- ApplicationSecurityManager.cs
- PrintPageEvent.cs
- MarkupCompiler.cs
- CodeCatchClauseCollection.cs
- BamlRecordHelper.cs
- ResourceManagerWrapper.cs
- DesignerActionService.cs
- Expander.cs
- OleDbReferenceCollection.cs
- NewArray.cs
- ValuePattern.cs
- AssemblyLoader.cs
- CollectionType.cs
- DataGridViewAutoSizeModeEventArgs.cs
- StateDesigner.CommentLayoutGlyph.cs
- SoapFormatter.cs
- BrowsableAttribute.cs
- ControlParameter.cs
- SequentialWorkflowHeaderFooter.cs
- XmlToDatasetMap.cs
- InputLanguageSource.cs
- PropertyAccessVisitor.cs
- RTLAwareMessageBox.cs
- ControlHelper.cs
- WsdlServiceChannelBuilder.cs
- Roles.cs
- SymbolType.cs
- GridViewAutomationPeer.cs
- SmtpFailedRecipientsException.cs
- AllowedAudienceUriElementCollection.cs
- IChannel.cs
- Certificate.cs
- DecoderFallback.cs
- WindowsSolidBrush.cs
- SafeArrayTypeMismatchException.cs
- ListItemParagraph.cs
- IResourceProvider.cs
- __ComObject.cs
- FrameworkElementFactoryMarkupObject.cs
- GifBitmapDecoder.cs
- Figure.cs
- Graphics.cs
- VisualCollection.cs
- securitymgrsite.cs
- DocumentEventArgs.cs
- FontStyleConverter.cs
- SerializationUtility.cs
- CompositeScriptReferenceEventArgs.cs
- MobileControlBuilder.cs
- ConditionalDesigner.cs
- Cast.cs
- ServiceBuildProvider.cs
- PerfService.cs
- TextDecorationUnitValidation.cs
- CodeTypeMember.cs
- Vector3dCollection.cs
- OutOfProcStateClientManager.cs
- IdnElement.cs
- SafeHandles.cs