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
- _TimerThread.cs
- StreamReader.cs
- CardSpacePolicyElement.cs
- AxisAngleRotation3D.cs
- CodeNamespaceImport.cs
- DataControlExtensions.cs
- XmlName.cs
- PersianCalendar.cs
- ContractsBCL.cs
- TextDpi.cs
- AccessDataSource.cs
- LifetimeServices.cs
- Expr.cs
- URL.cs
- XmlException.cs
- DockProviderWrapper.cs
- ObjectViewFactory.cs
- OutputCacheProfile.cs
- ImmutableCollection.cs
- CustomErrorsSectionWrapper.cs
- CapabilitiesRule.cs
- FileVersion.cs
- ArraySubsetEnumerator.cs
- ObjectItemNoOpAssemblyLoader.cs
- HotCommands.cs
- Sql8ConformanceChecker.cs
- HTTPNotFoundHandler.cs
- IgnoreDataMemberAttribute.cs
- SafeEventHandle.cs
- CodePageUtils.cs
- HttpProfileBase.cs
- InputBinding.cs
- Transform.cs
- ContentPosition.cs
- AnimationTimeline.cs
- externdll.cs
- DefaultProxySection.cs
- FastPropertyAccessor.cs
- WebControlsSection.cs
- HandlerBase.cs
- TemplatedMailWebEventProvider.cs
- InsufficientMemoryException.cs
- OpCodes.cs
- ModifierKeysConverter.cs
- _Events.cs
- Token.cs
- ResourceDictionaryCollection.cs
- TemplateBuilder.cs
- basenumberconverter.cs
- GlyphRun.cs
- PiiTraceSource.cs
- SqlServer2KCompatibilityCheck.cs
- EncryptedKey.cs
- ApplicationGesture.cs
- SamlAttribute.cs
- GlobalEventManager.cs
- ValidationErrorCollection.cs
- FormatConvertedBitmap.cs
- BamlWriter.cs
- TransactionTable.cs
- RectAnimation.cs
- EntityConnection.cs
- NativeRightsManagementAPIsStructures.cs
- AnimatedTypeHelpers.cs
- XamlWrappingReader.cs
- DynamicValidatorEventArgs.cs
- Properties.cs
- XmlElementList.cs
- Baml2006SchemaContext.cs
- InvokeMethodActivity.cs
- DelegateSerializationHolder.cs
- UserInitiatedNavigationPermission.cs
- ADRoleFactory.cs
- RegistryConfigurationProvider.cs
- OutputCacheSettings.cs
- GZipUtils.cs
- DefaultValueMapping.cs
- SizeChangedEventArgs.cs
- OutOfMemoryException.cs
- SqlStatistics.cs
- PowerStatus.cs
- ProcessHostFactoryHelper.cs
- RepeaterItemCollection.cs
- HttpModuleActionCollection.cs
- UnsignedPublishLicense.cs
- IxmlLineInfo.cs
- DataServiceOperationContext.cs
- CommentEmitter.cs
- ResourcesGenerator.cs
- HtmlHistory.cs
- BamlMapTable.cs
- WindowsListViewScroll.cs
- DispatcherExceptionFilterEventArgs.cs
- CryptoConfig.cs
- ResourceDisplayNameAttribute.cs
- PolyBezierSegment.cs
- BulletChrome.cs
- CodeExpressionCollection.cs
- XmlQualifiedName.cs
- HelloMessageApril2005.cs