Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DictionaryEditChange.cs
- WorkflowDefinitionContext.cs
- UIElementHelper.cs
- CultureInfo.cs
- DbCommandTree.cs
- Utils.cs
- UIElementPropertyUndoUnit.cs
- XmlMemberMapping.cs
- TextEffectResolver.cs
- LinearGradientBrush.cs
- OneOfConst.cs
- HttpServerUtilityBase.cs
- DrawingBrush.cs
- FormViewDeletedEventArgs.cs
- OrderedDictionary.cs
- MemoryFailPoint.cs
- AssemblyInfo.cs
- IFlowDocumentViewer.cs
- ExportOptions.cs
- DBSchemaTable.cs
- FlowLayout.cs
- WebBrowserUriTypeConverter.cs
- UnaryOperationBinder.cs
- SmtpDigestAuthenticationModule.cs
- SafeBitVector32.cs
- SingleAnimationUsingKeyFrames.cs
- ImportCatalogPart.cs
- TaskScheduler.cs
- GC.cs
- SeekStoryboard.cs
- XsltConvert.cs
- TextFormatterContext.cs
- SHA256CryptoServiceProvider.cs
- Page.cs
- EnumUnknown.cs
- TrackingServices.cs
- SimpleTextLine.cs
- URLAttribute.cs
- ObjectQueryState.cs
- XmlSiteMapProvider.cs
- NameObjectCollectionBase.cs
- RSAProtectedConfigurationProvider.cs
- PersonalizationState.cs
- safesecurityhelperavalon.cs
- Quaternion.cs
- IHttpResponseInternal.cs
- SettingsPropertyIsReadOnlyException.cs
- DefaultPrintController.cs
- HandlerBase.cs
- Trigger.cs
- LinkedResourceCollection.cs
- CorrelationKey.cs
- RadioButtonRenderer.cs
- MimeParameterWriter.cs
- TraceContext.cs
- MimeMapping.cs
- Region.cs
- DataControlButton.cs
- TextBoxRenderer.cs
- ZipIOLocalFileBlock.cs
- UnsafeMethods.cs
- CodeTypeParameterCollection.cs
- FrameworkRichTextComposition.cs
- EventSinkHelperWriter.cs
- WebCategoryAttribute.cs
- CharUnicodeInfo.cs
- TargetFrameworkAttribute.cs
- DependencyPropertyKey.cs
- sqlcontext.cs
- PageThemeBuildProvider.cs
- LayoutManager.cs
- Sentence.cs
- Activation.cs
- FrameDimension.cs
- DocumentEventArgs.cs
- ShaderEffect.cs
- XmlSchemaAttribute.cs
- PropertyChangedEventArgs.cs
- CompensationHandlingFilter.cs
- ToolStripPanelRenderEventArgs.cs
- CriticalHandle.cs
- MouseWheelEventArgs.cs
- EdmItemCollection.cs
- VisualState.cs
- _BufferOffsetSize.cs
- ObjectListDesigner.cs
- IdentityReference.cs
- _HTTPDateParse.cs
- ValidationHelper.cs
- ProtocolReflector.cs
- URIFormatException.cs
- TransactionFlowBindingElement.cs
- recordstate.cs
- Rect3D.cs
- IdentityReference.cs
- DataGridViewRowHeaderCell.cs
- DataGridPagerStyle.cs
- RtType.cs
- WebPartConnectionsEventArgs.cs
- HyperLinkColumn.cs