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
- XmlIlTypeHelper.cs
- WindowsStatusBar.cs
- CodeSpit.cs
- ControlLocalizer.cs
- XmlSchemaSimpleContentExtension.cs
- WebPartConnectionsConfigureVerb.cs
- XmlSchemaInfo.cs
- CqlErrorHelper.cs
- SafePEFileHandle.cs
- CellConstantDomain.cs
- Visitor.cs
- FocusChangedEventArgs.cs
- SHA256Managed.cs
- DataListItemEventArgs.cs
- SQLMoney.cs
- ExternalException.cs
- XmlNodeComparer.cs
- TagPrefixAttribute.cs
- FixedPosition.cs
- PropertyGrid.cs
- StringDictionary.cs
- MimeTypePropertyAttribute.cs
- SelectionEditingBehavior.cs
- IDReferencePropertyAttribute.cs
- PerformanceCountersElement.cs
- JavaScriptString.cs
- FixedSOMFixedBlock.cs
- coordinatorfactory.cs
- DbExpressionVisitor.cs
- ProgressBar.cs
- MultiSelector.cs
- AuthenticateEventArgs.cs
- ItemMap.cs
- DispatcherSynchronizationContext.cs
- RegistrationServices.cs
- ToolboxBitmapAttribute.cs
- PhoneCallDesigner.cs
- EntityFrameworkVersions.cs
- Queue.cs
- nulltextnavigator.cs
- TabItemAutomationPeer.cs
- DesignerWebPartChrome.cs
- Boolean.cs
- GenerateScriptTypeAttribute.cs
- ServiceReference.cs
- DataColumnPropertyDescriptor.cs
- StickyNoteContentControl.cs
- X509AsymmetricSecurityKey.cs
- DataSourceControlBuilder.cs
- DrawingCollection.cs
- MessageQueueInstaller.cs
- ApplicationBuildProvider.cs
- SafeCryptContextHandle.cs
- BrushConverter.cs
- Slider.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- FamilyTypeface.cs
- CodeAccessSecurityEngine.cs
- DummyDataSource.cs
- NotificationContext.cs
- XmlChoiceIdentifierAttribute.cs
- SolidColorBrush.cs
- ContentTypeSettingClientMessageFormatter.cs
- ReadOnlyDataSource.cs
- TdsValueSetter.cs
- SyntaxCheck.cs
- AttributeCollection.cs
- Point4DConverter.cs
- PropertyOverridesDialog.cs
- DeferrableContent.cs
- sortedlist.cs
- WebHttpElement.cs
- TemplatedMailWebEventProvider.cs
- mansign.cs
- Vector3D.cs
- SqlMultiplexer.cs
- DataGridViewCellValidatingEventArgs.cs
- DockProviderWrapper.cs
- mediaeventshelper.cs
- SystemResourceKey.cs
- DataControlPagerLinkButton.cs
- invalidudtexception.cs
- RayMeshGeometry3DHitTestResult.cs
- exports.cs
- SubordinateTransaction.cs
- PrincipalPermission.cs
- AppSettingsSection.cs
- MaskedTextBox.cs
- ImageClickEventArgs.cs
- StatusBarPanel.cs
- SafeFileHandle.cs
- DataGridViewLayoutData.cs
- CommonXSendMessage.cs
- ReferencedCollectionType.cs
- StyleCollectionEditor.cs
- DataGridRowAutomationPeer.cs
- RepeaterDesigner.cs
- ActivityCodeDomSerializationManager.cs
- securitymgrsite.cs
- SchemaRegistration.cs