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
- ListView.cs
- DrawingDrawingContext.cs
- Path.cs
- EnvelopedPkcs7.cs
- PackageDigitalSignatureManager.cs
- HwndMouseInputProvider.cs
- ProfileModule.cs
- XmlAnyAttributeAttribute.cs
- XPathCompiler.cs
- SignatureDescription.cs
- serverconfig.cs
- ObjectListCommandEventArgs.cs
- TextServicesContext.cs
- XmlSerializerAssemblyAttribute.cs
- Setter.cs
- JapaneseLunisolarCalendar.cs
- CodeAccessSecurityEngine.cs
- ComEventsSink.cs
- MeasurementDCInfo.cs
- BamlCollectionHolder.cs
- Encoder.cs
- SrgsElementFactoryCompiler.cs
- tabpagecollectioneditor.cs
- EdmPropertyAttribute.cs
- SwitchElementsCollection.cs
- DeleteIndexBinder.cs
- FactoryGenerator.cs
- TextBreakpoint.cs
- AuthStoreRoleProvider.cs
- PointHitTestResult.cs
- ProxyHwnd.cs
- Axis.cs
- EncoderExceptionFallback.cs
- WpfGeneratedKnownProperties.cs
- LingerOption.cs
- Condition.cs
- IsolatedStoragePermission.cs
- RuntimeWrappedException.cs
- PolyLineSegment.cs
- Roles.cs
- ConsumerConnectionPoint.cs
- XPathBinder.cs
- StateRuntime.cs
- BitConverter.cs
- NameSpaceExtractor.cs
- AttachmentCollection.cs
- ByteConverter.cs
- TagMapCollection.cs
- VirtualPathProvider.cs
- XmlSchemaSubstitutionGroup.cs
- _RequestLifetimeSetter.cs
- MenuEventArgs.cs
- ObjectSecurity.cs
- InternalControlCollection.cs
- ImportDesigner.xaml.cs
- MenuItemStyleCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- LayoutEditorPart.cs
- ScrollChangedEventArgs.cs
- ObjectContext.cs
- Brush.cs
- WindowsRegion.cs
- SqlDataSourceCache.cs
- XXXInfos.cs
- VarRemapper.cs
- TemplateNodeContextMenu.cs
- Vector3dCollection.cs
- SqlRecordBuffer.cs
- CheckBoxList.cs
- QualificationDataItem.cs
- printdlgexmarshaler.cs
- OperatorExpressions.cs
- SHA512Managed.cs
- QueryableFilterRepeater.cs
- KeyBinding.cs
- SystemIPInterfaceProperties.cs
- LocalizableResourceBuilder.cs
- XmlRawWriterWrapper.cs
- DoubleAnimationClockResource.cs
- PassportAuthenticationModule.cs
- ClientSettings.cs
- ChangeInterceptorAttribute.cs
- BufferedReceiveManager.cs
- ConsoleKeyInfo.cs
- KeyPullup.cs
- MissingFieldException.cs
- TypeExtensionConverter.cs
- ReflectEventDescriptor.cs
- WebPartCloseVerb.cs
- CryptoConfig.cs
- TextElement.cs
- ReadOnlyTernaryTree.cs
- coordinator.cs
- activationcontext.cs
- BreakRecordTable.cs
- XomlCompiler.cs
- LineServicesRun.cs
- CapabilitiesPattern.cs
- DependencyObject.cs
- CompilerTypeWithParams.cs