Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NumberSubstitution.cs
- ContextMenuAutomationPeer.cs
- NotFiniteNumberException.cs
- DynamicRendererThreadManager.cs
- TransformCollection.cs
- AccessText.cs
- DefaultWorkflowLoaderService.cs
- SqlGatherConsumedAliases.cs
- ConfigurationStrings.cs
- OleDbPropertySetGuid.cs
- RootBrowserWindowProxy.cs
- StreamReader.cs
- View.cs
- DataGridViewRowsAddedEventArgs.cs
- EnumValidator.cs
- SqlDeflator.cs
- TrackingServices.cs
- WebPartUtil.cs
- BlockCollection.cs
- TextRange.cs
- Converter.cs
- XmlSchemaSubstitutionGroup.cs
- AutomationElement.cs
- SoapExtensionTypeElementCollection.cs
- HttpException.cs
- QueryResponse.cs
- XmlSchemaNotation.cs
- CustomErrorsSectionWrapper.cs
- CommonDialog.cs
- HashCodeCombiner.cs
- XamlStyleSerializer.cs
- QilLiteral.cs
- RawStylusInput.cs
- RowVisual.cs
- TextSelectionProcessor.cs
- SQLInt64.cs
- OperationCanceledException.cs
- DataGridSortCommandEventArgs.cs
- InputLanguageEventArgs.cs
- TextTreeInsertUndoUnit.cs
- XsltConvert.cs
- XmlObjectSerializerReadContextComplex.cs
- CodeDOMUtility.cs
- RadioButton.cs
- PassportAuthentication.cs
- PropertyPushdownHelper.cs
- SqlFunctionAttribute.cs
- ToolStripGripRenderEventArgs.cs
- SafeViewOfFileHandle.cs
- X509ClientCertificateAuthenticationElement.cs
- FamilyTypefaceCollection.cs
- Debug.cs
- DocumentViewerBaseAutomationPeer.cs
- Random.cs
- BulletDecorator.cs
- PackageStore.cs
- ScopedMessagePartSpecification.cs
- WindowsSlider.cs
- WebConvert.cs
- SplineKeyFrames.cs
- XmlSchemaSimpleContentRestriction.cs
- Fonts.cs
- ServiceProviders.cs
- DesignerHelpers.cs
- ServerValidateEventArgs.cs
- ClientSideQueueItem.cs
- InstancePersistence.cs
- HealthMonitoringSectionHelper.cs
- QilInvokeEarlyBound.cs
- StringSource.cs
- SelectionProviderWrapper.cs
- ChildTable.cs
- TemplatedWizardStep.cs
- COM2ExtendedUITypeEditor.cs
- PropertyBuilder.cs
- xmlglyphRunInfo.cs
- CqlLexer.cs
- OleDbPermission.cs
- TextParaLineResult.cs
- TextStore.cs
- COM2EnumConverter.cs
- SamlSubject.cs
- ScrollItemProviderWrapper.cs
- EpmHelper.cs
- ScalarType.cs
- ELinqQueryState.cs
- CharEntityEncoderFallback.cs
- EventLogPermissionAttribute.cs
- ConsumerConnectionPoint.cs
- PeerFlooder.cs
- ACL.cs
- HttpFormatExtensions.cs
- Command.cs
- TreeNodeStyleCollection.cs
- RotateTransform.cs
- ObjectDataSourceChooseTypePanel.cs
- FileSecurity.cs
- ProviderException.cs
- UriScheme.cs
- ProfileGroupSettings.cs