Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ErasingStroke.cs
- XsltSettings.cs
- DataObjectSettingDataEventArgs.cs
- MonikerProxyAttribute.cs
- CalendarDataBindingHandler.cs
- TemplatedWizardStep.cs
- __FastResourceComparer.cs
- backend.cs
- ApplicationSettingsBase.cs
- EditingCommands.cs
- DataGridItemAttachedStorage.cs
- RangeValidator.cs
- ThreadStartException.cs
- WebPartZone.cs
- StatusBarItemAutomationPeer.cs
- NamespaceMapping.cs
- DoubleCollectionValueSerializer.cs
- Vector3DIndependentAnimationStorage.cs
- XmlFormatReaderGenerator.cs
- PeerNameRecordCollection.cs
- SynchronizationContext.cs
- PolicyStatement.cs
- DataGridViewTextBoxColumn.cs
- ReferencedType.cs
- UpdatePanelTriggerCollection.cs
- WorkflowServiceOperationListItem.cs
- ModelTreeManager.cs
- AssemblyResourceLoader.cs
- Opcode.cs
- CssStyleCollection.cs
- HitTestParameters.cs
- Pts.cs
- XhtmlBasicValidatorAdapter.cs
- ScriptResourceHandler.cs
- TypeGeneratedEventArgs.cs
- DataComponentGenerator.cs
- QueryStringParameter.cs
- ObjectDataSourceStatusEventArgs.cs
- EtwTrace.cs
- HttpHandlersSection.cs
- VarRefManager.cs
- ConnectorDragDropGlyph.cs
- ConsoleEntryPoint.cs
- WebPartExportVerb.cs
- Bezier.cs
- ArgIterator.cs
- FromReply.cs
- MetadataException.cs
- SeekableReadStream.cs
- ExportOptions.cs
- CounterCreationDataCollection.cs
- IgnorePropertiesAttribute.cs
- PageCatalogPart.cs
- ObjectParameterCollection.cs
- Interlocked.cs
- FillBehavior.cs
- FontResourceCache.cs
- NonceToken.cs
- DynamicUpdateCommand.cs
- UnlockInstanceCommand.cs
- AmbientProperties.cs
- RtfNavigator.cs
- ResponseBodyWriter.cs
- TextBoxAutoCompleteSourceConverter.cs
- PeerInputChannelListener.cs
- CodeFieldReferenceExpression.cs
- RowUpdatedEventArgs.cs
- WebPartTransformer.cs
- MultiAsyncResult.cs
- SQLDateTimeStorage.cs
- CallbackHandler.cs
- QueryableFilterRepeater.cs
- TypeResolver.cs
- CommandSet.cs
- SmtpSection.cs
- SocketConnection.cs
- TextCharacters.cs
- ManagementBaseObject.cs
- MediaElementAutomationPeer.cs
- Control.cs
- ChangePassword.cs
- CodeTypeParameter.cs
- ComEventsMethod.cs
- XamlPoint3DCollectionSerializer.cs
- DbXmlEnabledProviderManifest.cs
- WindowsStatusBar.cs
- AssemblyBuilder.cs
- PropertyGroupDescription.cs
- HtmlButton.cs
- SafeReadContext.cs
- MergePropertyDescriptor.cs
- Cursors.cs
- SimpleBitVector32.cs
- Parser.cs
- CrossContextChannel.cs
- Paragraph.cs
- _HeaderInfo.cs
- DataGridViewCellStyleChangedEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RefreshEventArgs.cs