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
- DataMisalignedException.cs
- Variant.cs
- ToolStripPanelRenderEventArgs.cs
- WSSecureConversationFeb2005.cs
- IntranetCredentialPolicy.cs
- WebServiceResponseDesigner.cs
- DesignTimeVisibleAttribute.cs
- DeferredReference.cs
- Int64AnimationUsingKeyFrames.cs
- Package.cs
- Listbox.cs
- BufferedGraphics.cs
- TextElementEnumerator.cs
- KeyNotFoundException.cs
- ElementHostAutomationPeer.cs
- XmlSortKey.cs
- SecurityAlgorithmSuite.cs
- GridItemProviderWrapper.cs
- InputElement.cs
- MarshalByRefObject.cs
- DashStyle.cs
- SQLBinaryStorage.cs
- SessionPageStatePersister.cs
- StackBuilderSink.cs
- CharAnimationBase.cs
- VirtualPath.cs
- ConfigurationStrings.cs
- WriteableOnDemandStream.cs
- ByteStream.cs
- NGCSerializerAsync.cs
- PopOutPanel.cs
- EmptyReadOnlyDictionaryInternal.cs
- ObjectQueryExecutionPlan.cs
- MatrixStack.cs
- XmlSchemaSequence.cs
- Decimal.cs
- FormViewDeletedEventArgs.cs
- UnsafeNativeMethods.cs
- CatalogZoneBase.cs
- Identifier.cs
- DoubleLink.cs
- CaseInsensitiveComparer.cs
- AlphaSortedEnumConverter.cs
- CompensationDesigner.cs
- XmlSchemaImport.cs
- SqlDataReaderSmi.cs
- DataGridToolTip.cs
- ServiceHostingEnvironment.cs
- HeaderUtility.cs
- HighlightVisual.cs
- FlowLayoutSettings.cs
- StyleSheetComponentEditor.cs
- invalidudtexception.cs
- CustomAttributeFormatException.cs
- HelpEvent.cs
- FixedSOMTable.cs
- AdapterSwitches.cs
- XPathNodeHelper.cs
- BlockUIContainer.cs
- FontStyles.cs
- XamlReader.cs
- ProxyManager.cs
- XmlElementAttribute.cs
- XmlStrings.cs
- WebPartUtil.cs
- IListConverters.cs
- BStrWrapper.cs
- ButtonChrome.cs
- CommandLibraryHelper.cs
- SystemUdpStatistics.cs
- WebPartsPersonalization.cs
- ProfileModule.cs
- CustomAttributeBuilder.cs
- StylusCaptureWithinProperty.cs
- KeyboardEventArgs.cs
- CheckBoxBaseAdapter.cs
- ImageAutomationPeer.cs
- DataProtection.cs
- RequestCacheValidator.cs
- Gdiplus.cs
- AdRotator.cs
- FormatVersion.cs
- PointHitTestResult.cs
- ChildTable.cs
- ListCollectionView.cs
- WebBrowser.cs
- WinCategoryAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- TouchesOverProperty.cs
- IndexingContentUnit.cs
- XmlLinkedNode.cs
- AutomationEventArgs.cs
- WorkflowNamespace.cs
- LocatorPartList.cs
- IntSecurity.cs
- SQLString.cs
- OdbcErrorCollection.cs
- AssertFilter.cs
- SmtpNtlmAuthenticationModule.cs
- __Error.cs