Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TypeUsage.cs
- TaiwanLunisolarCalendar.cs
- CopyNamespacesAction.cs
- NativeMethods.cs
- PropertyEmitterBase.cs
- ThreadNeutralSemaphore.cs
- ZipArchive.cs
- RegexTree.cs
- PrimitiveDataContract.cs
- GeneralTransform3D.cs
- State.cs
- PathTooLongException.cs
- DataGridItem.cs
- ProfileModule.cs
- WindowShowOrOpenTracker.cs
- TextContainer.cs
- ListViewContainer.cs
- IsolationInterop.cs
- WebBrowsableAttribute.cs
- ConstantProjectedSlot.cs
- BamlLocalizableResource.cs
- ToolZone.cs
- X509Certificate.cs
- TextDecorationCollection.cs
- PlanCompilerUtil.cs
- WorkItem.cs
- XmlDesignerDataSourceView.cs
- ErrorStyle.cs
- SystemTcpStatistics.cs
- NativeRightsManagementAPIsStructures.cs
- NamespaceInfo.cs
- X509SecurityTokenAuthenticator.cs
- XmlQualifiedName.cs
- GestureRecognitionResult.cs
- SqlConnectionStringBuilder.cs
- WeakReferenceList.cs
- SecurityContext.cs
- StylusPoint.cs
- JpegBitmapEncoder.cs
- Comparer.cs
- XmlSchemaSimpleContentExtension.cs
- SystemIPGlobalProperties.cs
- FreezableCollection.cs
- DataSourceDescriptorCollection.cs
- TableLayoutColumnStyleCollection.cs
- AtomicFile.cs
- SHA1.cs
- PeerChannelFactory.cs
- TextEditorParagraphs.cs
- DeclarationUpdate.cs
- ScriptRegistrationManager.cs
- ListBase.cs
- TypeRestriction.cs
- ServiceNotStartedException.cs
- PathGradientBrush.cs
- TextCollapsingProperties.cs
- RelationshipEndMember.cs
- PersonalizationStateInfoCollection.cs
- pingexception.cs
- ParallelTimeline.cs
- SynchronizationScope.cs
- Schema.cs
- UriTemplateMatchException.cs
- CurrencyWrapper.cs
- RetrieveVirtualItemEventArgs.cs
- IgnoreFileBuildProvider.cs
- TemplateControl.cs
- Win32KeyboardDevice.cs
- SQLConvert.cs
- TransformationRules.cs
- ThreadPoolTaskScheduler.cs
- XmlSubtreeReader.cs
- WhitespaceSignificantCollectionAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- OracleDataReader.cs
- TempFiles.cs
- safesecurityhelperavalon.cs
- TableSectionStyle.cs
- TemplatePartAttribute.cs
- WorkBatch.cs
- UnsafeNativeMethods.cs
- IntSecurity.cs
- DataSourceExpression.cs
- TextMarkerSource.cs
- TreeView.cs
- ContractsBCL.cs
- SafeThreadHandle.cs
- NativeCppClassAttribute.cs
- DataTableReaderListener.cs
- ShadowGlyph.cs
- InternalUserCancelledException.cs
- ToolStripCollectionEditor.cs
- ColorConvertedBitmap.cs
- DataBoundControl.cs
- WebPartCatalogCloseVerb.cs
- Int16.cs
- _RequestCacheProtocol.cs
- WorkflowExecutor.cs
- NumberFormatter.cs
- SmiTypedGetterSetter.cs