Code:
/ FX-1434 / FX-1434 / 1.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
- documentation.cs
- GeometryModel3D.cs
- ExtensionQuery.cs
- AccessViolationException.cs
- AsymmetricKeyExchangeDeformatter.cs
- StylusDevice.cs
- HttpWrapper.cs
- FrameworkRichTextComposition.cs
- HtmlInputRadioButton.cs
- SerializationEventsCache.cs
- TableLayoutPanel.cs
- DBBindings.cs
- FormViewPagerRow.cs
- CanExpandCollapseAllConverter.cs
- MailWriter.cs
- SiteMapNodeCollection.cs
- RegexNode.cs
- TableCell.cs
- IODescriptionAttribute.cs
- DateTimeValueSerializerContext.cs
- SynchronizationLockException.cs
- KerberosTicketHashIdentifierClause.cs
- PngBitmapDecoder.cs
- QueryServiceConfigHandle.cs
- SimpleWorkerRequest.cs
- SendMailErrorEventArgs.cs
- DocumentReference.cs
- ServiceBusyException.cs
- WindowsFormsHostAutomationPeer.cs
- SslStream.cs
- SelectionPattern.cs
- HyperLinkColumn.cs
- ClientApiGenerator.cs
- X509ChainPolicy.cs
- XslTransform.cs
- ScriptResourceInfo.cs
- TTSEvent.cs
- _NegoState.cs
- RadioButton.cs
- SqlDataSourceStatusEventArgs.cs
- ObjectDisposedException.cs
- Literal.cs
- RawStylusSystemGestureInputReport.cs
- EventLog.cs
- ComboBox.cs
- EndpointDiscoveryMetadataCD1.cs
- MissingFieldException.cs
- DateTimeStorage.cs
- TableLayoutCellPaintEventArgs.cs
- HybridDictionary.cs
- PopupRoot.cs
- FileDialog.cs
- ExpressionBinding.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- OdbcException.cs
- WebPartDisplayModeEventArgs.cs
- DoubleConverter.cs
- CodeVariableReferenceExpression.cs
- NativeMethodsOther.cs
- SystemTcpStatistics.cs
- Point.cs
- Line.cs
- EmptyEnumerable.cs
- SqlDataSourceEnumerator.cs
- DbProviderServices.cs
- SqlDeflator.cs
- StrokeRenderer.cs
- mda.cs
- ExecutedRoutedEventArgs.cs
- dbenumerator.cs
- HttpResponse.cs
- DocumentPage.cs
- DelimitedListTraceListener.cs
- ComponentSerializationService.cs
- ByteAnimationUsingKeyFrames.cs
- BinaryMessageEncodingElement.cs
- BinaryObjectReader.cs
- Material.cs
- GeometryModel3D.cs
- SiteMapProvider.cs
- IndentTextWriter.cs
- AdvancedBindingEditor.cs
- XmlSerializer.cs
- PrefixQName.cs
- StructuredType.cs
- LabelEditEvent.cs
- X509ThumbprintKeyIdentifierClause.cs
- CacheChildrenQuery.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SingleQueryOperator.cs
- PassportAuthenticationEventArgs.cs
- XamlWriter.cs
- DataControlButton.cs
- GuidelineSet.cs
- ExpressionList.cs
- CqlParser.cs
- SafeCoTaskMem.cs
- UnsafeCollabNativeMethods.cs
- _TLSstream.cs
- mactripleDES.cs