Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripContainerDesigner.cs
- DataSourceCache.cs
- WebPermission.cs
- TextClipboardData.cs
- InputEventArgs.cs
- DataGridItemCollection.cs
- SafeHGlobalHandleCritical.cs
- RsaEndpointIdentity.cs
- SpotLight.cs
- OneToOneMappingSerializer.cs
- DSASignatureDeformatter.cs
- HttpWrapper.cs
- MissingFieldException.cs
- ChineseLunisolarCalendar.cs
- SoapCommonClasses.cs
- ImmutableAssemblyCacheEntry.cs
- MessageSecurityProtocolFactory.cs
- mediaeventargs.cs
- SafeNativeHandle.cs
- BitmapEffectvisualstate.cs
- MemberJoinTreeNode.cs
- Rectangle.cs
- RNGCryptoServiceProvider.cs
- DataPagerFieldItem.cs
- Int32Collection.cs
- ZipIOExtraFieldElement.cs
- ArrayWithOffset.cs
- DataTable.cs
- DataSourceCache.cs
- MessageSmuggler.cs
- XmlDataLoader.cs
- SectionInformation.cs
- DependencyObject.cs
- Pen.cs
- AttachedPropertyDescriptor.cs
- CheckableControlBaseAdapter.cs
- VariableAction.cs
- BufferedGraphicsManager.cs
- GlyphCollection.cs
- FontInfo.cs
- ServiceDiscoveryBehavior.cs
- BufferAllocator.cs
- SchemaImporterExtension.cs
- SingleConverter.cs
- WebPageTraceListener.cs
- KerberosSecurityTokenProvider.cs
- Point3DKeyFrameCollection.cs
- GeneralTransform3DGroup.cs
- DataSpaceManager.cs
- XmlSchemaComplexContent.cs
- SpanIndex.cs
- HtmlTable.cs
- DataGridItemEventArgs.cs
- FamilyCollection.cs
- AccessText.cs
- StyleBamlRecordReader.cs
- KeyMatchBuilder.cs
- BinaryObjectInfo.cs
- Dump.cs
- ProcessHostMapPath.cs
- AgileSafeNativeMemoryHandle.cs
- TypeSystem.cs
- SymmetricAlgorithm.cs
- ProjectionCamera.cs
- AnnotationStore.cs
- BamlStream.cs
- MediaPlayerState.cs
- Graph.cs
- EmptyElement.cs
- SqlGatherProducedAliases.cs
- ConnectionPointCookie.cs
- TableItemStyle.cs
- InstalledFontCollection.cs
- activationcontext.cs
- StrongBox.cs
- ScriptComponentDescriptor.cs
- PeerNameResolver.cs
- ExpandoObject.cs
- ReachIDocumentPaginatorSerializer.cs
- ArrayTypeMismatchException.cs
- SoapIncludeAttribute.cs
- TypeConverterValueSerializer.cs
- StructuredTypeEmitter.cs
- MsmqIntegrationBindingElement.cs
- SmtpLoginAuthenticationModule.cs
- DataList.cs
- SQLUtility.cs
- EventDescriptor.cs
- PingReply.cs
- IERequestCache.cs
- XsltCompileContext.cs
- DictionaryEditChange.cs
- LocalBuilder.cs
- CodeDomDecompiler.cs
- Comparer.cs
- ByteConverter.cs
- JsonByteArrayDataContract.cs
- KnownIds.cs
- SmiXetterAccessMap.cs
- DependentList.cs