Code:
/ FX-1434 / FX-1434 / 1.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
- ScopedKnownTypes.cs
- EventListener.cs
- IntSecurity.cs
- FixedNode.cs
- ScaleTransform.cs
- ScriptingJsonSerializationSection.cs
- TablePattern.cs
- RegexInterpreter.cs
- XmlnsPrefixAttribute.cs
- UserControl.cs
- Int64Converter.cs
- ListDesigner.cs
- DataGridViewRowPrePaintEventArgs.cs
- IsolatedStorage.cs
- DtdParser.cs
- StringExpressionSet.cs
- ColumnTypeConverter.cs
- BreakRecordTable.cs
- ItemsControlAutomationPeer.cs
- PolyBezierSegment.cs
- EntryIndex.cs
- CompressStream.cs
- PassportPrincipal.cs
- X509Certificate2Collection.cs
- InvokeGenerator.cs
- cookiecollection.cs
- ObjectSpanRewriter.cs
- CodeAttachEventStatement.cs
- HtmlImage.cs
- TdsParserSafeHandles.cs
- IgnoreDeviceFilterElement.cs
- DataBinder.cs
- RecordManager.cs
- GetPageNumberCompletedEventArgs.cs
- ProcessManager.cs
- WizardStepCollectionEditor.cs
- FormParameter.cs
- HandoffBehavior.cs
- GridViewSortEventArgs.cs
- CatalogPartChrome.cs
- SecurityTokenTypes.cs
- SqlConnectionString.cs
- Themes.cs
- DayRenderEvent.cs
- RefType.cs
- WindowShowOrOpenTracker.cs
- PropertyGeneratedEventArgs.cs
- CustomCategoryAttribute.cs
- CustomErrorCollection.cs
- XmlSchemaAppInfo.cs
- SafeSecurityHelper.cs
- OleDbConnectionInternal.cs
- XmlSchemaGroup.cs
- MimeWriter.cs
- Point3DAnimation.cs
- BoundPropertyEntry.cs
- DetailsViewCommandEventArgs.cs
- PointAnimationUsingKeyFrames.cs
- MultiViewDesigner.cs
- DataGridViewColumnStateChangedEventArgs.cs
- columnmapfactory.cs
- ProtocolsSection.cs
- AddInToken.cs
- PermissionRequestEvidence.cs
- RayMeshGeometry3DHitTestResult.cs
- ObjectDataSourceSelectingEventArgs.cs
- CallbackValidator.cs
- SupportsEventValidationAttribute.cs
- RelationshipEnd.cs
- SymmetricKeyWrap.cs
- HierarchicalDataTemplate.cs
- CompositeDesignerAccessibleObject.cs
- ViewBox.cs
- TabItem.cs
- DoubleAnimationUsingKeyFrames.cs
- TableLayoutStyleCollection.cs
- BitmapCodecInfoInternal.cs
- XmlDictionary.cs
- assemblycache.cs
- ObfuscationAttribute.cs
- MsdtcWrapper.cs
- SessionEndedEventArgs.cs
- ProtectedConfigurationProviderCollection.cs
- InheritablePropertyChangeInfo.cs
- OleTxTransactionInfo.cs
- BinaryCommonClasses.cs
- DirectoryObjectSecurity.cs
- ResXDataNode.cs
- IconBitmapDecoder.cs
- ListControlDataBindingHandler.cs
- ObjectStateFormatter.cs
- SqlColumnizer.cs
- WebPartConnectionsCancelEventArgs.cs
- TemplateComponentConnector.cs
- MeshGeometry3D.cs
- OpCodes.cs
- TreeNodeStyle.cs
- CommandManager.cs
- GridViewRowEventArgs.cs
- PolicyException.cs