Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItem.cs / 1 / RepeaterItem.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI.WebControls { using System; using System.ComponentModel; using System.ComponentModel.Design; using System.Web.UI; using System.Security.Permissions; ////// [ ToolboxItem(false) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class RepeaterItem : Control, IDataItemContainer { private int itemIndex; private ListItemType itemType; private object dataItem; ///Encapsulates an item within the ///control. /// public RepeaterItem(int itemIndex, ListItemType itemType) { this.itemIndex = itemIndex; this.itemType = itemType; } ///Initializes a new instance of the ///with the specified item type and /// location. /// Specifies the data item. /// public virtual object DataItem { get { return dataItem; } set { dataItem = value; } } ////// public virtual int ItemIndex { get { return itemIndex; } } ///Indicates the ordinal index that specifies the item /// location within the ////// . /// Indicates the public virtual ListItemType ItemType { get { return itemType; } } ///item type. This property is /// read-only. /// /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { RepeaterCommandEventArgs args = new RepeaterCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } int IDataItemContainer.DataItemIndex { get { return ItemIndex; } } int IDataItemContainer.DisplayIndex { get { return ItemIndex; } } } } // 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; using System.ComponentModel; using System.ComponentModel.Design; using System.Web.UI; using System.Security.Permissions; ////// [ ToolboxItem(false) ] [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public class RepeaterItem : Control, IDataItemContainer { private int itemIndex; private ListItemType itemType; private object dataItem; ///Encapsulates an item within the ///control. /// public RepeaterItem(int itemIndex, ListItemType itemType) { this.itemIndex = itemIndex; this.itemType = itemType; } ///Initializes a new instance of the ///with the specified item type and /// location. /// Specifies the data item. /// public virtual object DataItem { get { return dataItem; } set { dataItem = value; } } ////// public virtual int ItemIndex { get { return itemIndex; } } ///Indicates the ordinal index that specifies the item /// location within the ////// . /// Indicates the public virtual ListItemType ItemType { get { return itemType; } } ///item type. This property is /// read-only. /// /// /// protected override bool OnBubbleEvent(object source, EventArgs e) { if (e is CommandEventArgs) { RepeaterCommandEventArgs args = new RepeaterCommandEventArgs(this, source, (CommandEventArgs)e); RaiseBubbleEvent(this, args); return true; } return false; } int IDataItemContainer.DataItemIndex { get { return ItemIndex; } } int IDataItemContainer.DisplayIndex { get { return ItemIndex; } } } } // 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
- BitmapEncoder.cs
- SortDescriptionCollection.cs
- StateManagedCollection.cs
- BinaryObjectWriter.cs
- AutomationAttributeInfo.cs
- BindStream.cs
- UserCancellationException.cs
- AttributeCollection.cs
- SelectorAutomationPeer.cs
- RootBrowserWindowAutomationPeer.cs
- FileRecordSequenceCompletedAsyncResult.cs
- LostFocusEventManager.cs
- _IPv6Address.cs
- ScriptingSectionGroup.cs
- BulletedListDesigner.cs
- StrokeCollectionConverter.cs
- ChannelBinding.cs
- ChannelRequirements.cs
- ClientScriptManagerWrapper.cs
- TiffBitmapDecoder.cs
- TransformerConfigurationWizardBase.cs
- HttpClientChannel.cs
- AtomParser.cs
- ThemeInfoAttribute.cs
- _SecureChannel.cs
- MethodBuilder.cs
- DictionaryBase.cs
- DataGridViewCellValidatingEventArgs.cs
- ServiceManagerHandle.cs
- HtmlButton.cs
- VisualBrush.cs
- TextEmbeddedObject.cs
- ProgressiveCrcCalculatingStream.cs
- CatalogZoneAutoFormat.cs
- CompilationUtil.cs
- _HeaderInfo.cs
- EdmTypeAttribute.cs
- BypassElementCollection.cs
- BitVector32.cs
- Line.cs
- SqlFlattener.cs
- TransportChannelListener.cs
- AlphaSortedEnumConverter.cs
- WebPartCatalogAddVerb.cs
- QuaternionAnimationUsingKeyFrames.cs
- AuthorizationSection.cs
- SHA512Managed.cs
- SpnegoTokenAuthenticator.cs
- EditorZone.cs
- RegexRunner.cs
- PeerResolverElement.cs
- AsyncContentLoadedEventArgs.cs
- _NTAuthentication.cs
- RadioButton.cs
- LocalTransaction.cs
- ProxyElement.cs
- StructuralObject.cs
- DocumentViewerAutomationPeer.cs
- Literal.cs
- IndependentAnimationStorage.cs
- XmlNavigatorStack.cs
- RangeBaseAutomationPeer.cs
- RowBinding.cs
- FastEncoderStatics.cs
- IdentityHolder.cs
- ToolboxDataAttribute.cs
- FactoryMaker.cs
- ConfigurationManagerInternalFactory.cs
- XmlSchemaIdentityConstraint.cs
- RoleManagerEventArgs.cs
- InvalidPrinterException.cs
- BlobPersonalizationState.cs
- HashAlgorithm.cs
- DoubleKeyFrameCollection.cs
- RegionData.cs
- OfTypeExpression.cs
- ThemeableAttribute.cs
- DbConnectionHelper.cs
- DbConnectionPoolCounters.cs
- AutoResizedEvent.cs
- XmlAutoDetectWriter.cs
- DashStyle.cs
- TableLayout.cs
- ListBoxItemAutomationPeer.cs
- ListBindingConverter.cs
- CharAnimationBase.cs
- DataStreams.cs
- Environment.cs
- LayoutDump.cs
- _SslState.cs
- Visual3D.cs
- EntityCommandExecutionException.cs
- WSHttpSecurityElement.cs
- _WinHttpWebProxyDataBuilder.cs
- DaylightTime.cs
- GroupItemAutomationPeer.cs
- DateBoldEvent.cs
- WindowCollection.cs
- SmtpDateTime.cs
- WebPartCatalogCloseVerb.cs