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
- VBIdentifierDesigner.xaml.cs
- ByteAnimation.cs
- CallbackHandler.cs
- DesignTimeType.cs
- ReceiveMessageContent.cs
- TextDecorations.cs
- EntityKey.cs
- DataGridViewTopRowAccessibleObject.cs
- XmlArrayAttribute.cs
- cryptoapiTransform.cs
- MemoryMappedFileSecurity.cs
- BinaryUtilClasses.cs
- RequestCachePolicy.cs
- ListViewInsertedEventArgs.cs
- QueryExpr.cs
- XmlSchemaResource.cs
- Util.cs
- SessionStateSection.cs
- FillBehavior.cs
- ConnectivityStatus.cs
- StylusEventArgs.cs
- ClockController.cs
- DetailsViewRowCollection.cs
- EllipseGeometry.cs
- ConfigurationElementProperty.cs
- StrokeCollection.cs
- HTTPNotFoundHandler.cs
- GridView.cs
- DbRetry.cs
- SqlEnums.cs
- ResolveCriteria11.cs
- SafeHandles.cs
- ControlPager.cs
- QuerySettings.cs
- TabControl.cs
- InputDevice.cs
- CompileXomlTask.cs
- TransformProviderWrapper.cs
- glyphs.cs
- PropertyFilterAttribute.cs
- ToolStripHighContrastRenderer.cs
- LogEntryDeserializer.cs
- OdbcInfoMessageEvent.cs
- ObjectAnimationBase.cs
- SerializerProvider.cs
- WebChannelFactory.cs
- BasicViewGenerator.cs
- _TransmitFileOverlappedAsyncResult.cs
- SchemaConstraints.cs
- Timer.cs
- DtrList.cs
- DependencyPropertyHelper.cs
- ConditionedDesigner.cs
- DataComponentNameHandler.cs
- ActivityContext.cs
- InsufficientMemoryException.cs
- NewArrayExpression.cs
- HtmlTextViewAdapter.cs
- MulticastIPAddressInformationCollection.cs
- WMICapabilities.cs
- TextParentUndoUnit.cs
- OrderByQueryOptionExpression.cs
- Canvas.cs
- AuthorizationRule.cs
- ObjectSpanRewriter.cs
- COM2PropertyPageUITypeConverter.cs
- Comparer.cs
- WorkflowApplicationCompletedEventArgs.cs
- SocketInformation.cs
- ProtocolsConfigurationEntry.cs
- JsonWriterDelegator.cs
- OdbcReferenceCollection.cs
- DbProviderFactories.cs
- BidPrivateBase.cs
- DataSourceHelper.cs
- CommandEventArgs.cs
- RecognizedPhrase.cs
- DocumentOrderQuery.cs
- XsltSettings.cs
- Int32Converter.cs
- arc.cs
- GACMembershipCondition.cs
- clipboard.cs
- StyleSheetRefUrlEditor.cs
- StdValidatorsAndConverters.cs
- AuthorizationBehavior.cs
- BitSet.cs
- StorageMappingFragment.cs
- AliasGenerator.cs
- HashHelper.cs
- Visitor.cs
- DataGridViewIntLinkedList.cs
- ColumnResizeAdorner.cs
- ReflectionPermission.cs
- TreeViewDesigner.cs
- TCPListener.cs
- FileSystemWatcher.cs
- basenumberconverter.cs
- FontUnit.cs
- CodeExpressionStatement.cs