Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientData.cs
- DBCSCodePageEncoding.cs
- _CacheStreams.cs
- ReadOnlyPropertyMetadata.cs
- MetaType.cs
- TextMessageEncodingElement.cs
- GlyphManager.cs
- TraceSwitch.cs
- PageRequestManager.cs
- XmlSchemaComplexType.cs
- ProfileManager.cs
- GeneralTransform3D.cs
- ToolBar.cs
- MatrixValueSerializer.cs
- Convert.cs
- XmlDictionaryWriter.cs
- DesignerActionUIStateChangeEventArgs.cs
- WebPartHeaderCloseVerb.cs
- ObjectDataSourceDisposingEventArgs.cs
- TextDecorationCollection.cs
- CollectionChangeEventArgs.cs
- DbConnectionStringBuilder.cs
- OdbcDataAdapter.cs
- DragStartedEventArgs.cs
- XmlAnyAttributeAttribute.cs
- SimpleLine.cs
- BCLDebug.cs
- Expression.cs
- SharedPerformanceCounter.cs
- SqlConnectionHelper.cs
- XmlUtf8RawTextWriter.cs
- CompositionTarget.cs
- BreadCrumbTextConverter.cs
- DrawingImage.cs
- MobileControlDesigner.cs
- DataObjectMethodAttribute.cs
- IERequestCache.cs
- MouseActionConverter.cs
- ResourcesGenerator.cs
- ConditionedDesigner.cs
- Dictionary.cs
- AssemblyAttributesGoHere.cs
- TextBounds.cs
- GridViewRow.cs
- listitem.cs
- ConvertersCollection.cs
- X509Certificate2.cs
- TextParagraphProperties.cs
- ElementProxy.cs
- CodeDOMProvider.cs
- Rectangle.cs
- ExceptionUtil.cs
- CommandCollectionEditor.cs
- RecordConverter.cs
- NavigationEventArgs.cs
- DotAtomReader.cs
- VectorCollectionConverter.cs
- BamlTreeNode.cs
- BaseComponentEditor.cs
- SafeEventLogWriteHandle.cs
- ProcessModuleCollection.cs
- ListBindingHelper.cs
- XhtmlCssHandler.cs
- DrawingBrush.cs
- UrlSyndicationContent.cs
- KeyFrames.cs
- LinqToSqlWrapper.cs
- ComPlusTypeLoader.cs
- InkCanvasSelectionAdorner.cs
- HtmlToClrEventProxy.cs
- SortExpressionBuilder.cs
- InputLangChangeEvent.cs
- MinimizableAttributeTypeConverter.cs
- Operators.cs
- TableCellCollection.cs
- DtdParser.cs
- SessionStateContainer.cs
- DataSourceXmlClassAttribute.cs
- PointIndependentAnimationStorage.cs
- SmtpFailedRecipientException.cs
- CodeDomConfigurationHandler.cs
- DynamicILGenerator.cs
- ObservableDictionary.cs
- MailAddressCollection.cs
- CodeThrowExceptionStatement.cs
- DataGridViewRowHeaderCell.cs
- ColumnHeader.cs
- SmiMetaData.cs
- ProxyWebPart.cs
- TableRow.cs
- EventMap.cs
- BulletDecorator.cs
- UnaryExpression.cs
- StrongName.cs
- MemoryMappedViewAccessor.cs
- BaseDataBoundControlDesigner.cs
- WindowsFormsHelpers.cs
- PopupControlService.cs
- BulletedListEventArgs.cs
- HyperLinkField.cs