Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ListControlConvertEventArgs.cs
- VirtualDirectoryMapping.cs
- _PooledStream.cs
- TextBreakpoint.cs
- WebPartCatalogAddVerb.cs
- DropDownHolder.cs
- Utils.cs
- ExtenderProviderService.cs
- RadioButtonRenderer.cs
- SubclassTypeValidator.cs
- TraceContextRecord.cs
- RightsManagementInformation.cs
- RightsManagementEncryptedStream.cs
- ExpressionNormalizer.cs
- TreeViewCancelEvent.cs
- DbDataRecord.cs
- SQLMembershipProvider.cs
- Freezable.cs
- CancellableEnumerable.cs
- RepeatBehavior.cs
- SubMenuStyleCollectionEditor.cs
- TableRowCollection.cs
- ToolStripItemRenderEventArgs.cs
- XPathParser.cs
- TimeIntervalCollection.cs
- EndpointDiscoveryMetadata.cs
- GridViewDeleteEventArgs.cs
- TraceHwndHost.cs
- DataGridColumnCollection.cs
- CodeMethodInvokeExpression.cs
- BitVector32.cs
- DataGridItemCollection.cs
- ByteAnimationBase.cs
- SingleConverter.cs
- GeometryModel3D.cs
- PropertyIDSet.cs
- ComboBoxAutomationPeer.cs
- WebHttpSecurityElement.cs
- SecurityKeyIdentifier.cs
- ResXBuildProvider.cs
- CertificateManager.cs
- HandoffBehavior.cs
- CursorInteropHelper.cs
- PathSegment.cs
- NativeMethodsCLR.cs
- EllipticalNodeOperations.cs
- BitmapCodecInfo.cs
- DataServiceEntityAttribute.cs
- ConnectionPoolRegistry.cs
- CryptoHelper.cs
- SmiMetaData.cs
- PageSetupDialog.cs
- Util.cs
- Queue.cs
- SafeBitVector32.cs
- InitializationEventAttribute.cs
- PropertyPathConverter.cs
- RecordBuilder.cs
- XmlCharCheckingWriter.cs
- Brush.cs
- DBConcurrencyException.cs
- InkCanvasSelection.cs
- ListComponentEditor.cs
- OperationFormatStyle.cs
- CodeRemoveEventStatement.cs
- TemplateEditingVerb.cs
- Attribute.cs
- PeerInvitationResponse.cs
- ToggleButton.cs
- EnumDataContract.cs
- DataGridViewComboBoxCell.cs
- ModuleConfigurationInfo.cs
- Hash.cs
- StrokeNode.cs
- SelectionRangeConverter.cs
- DataService.cs
- Msec.cs
- RuntimeVariableList.cs
- WriteableBitmap.cs
- TargetPerspective.cs
- ExpressionBuilder.cs
- DoubleUtil.cs
- SlipBehavior.cs
- D3DImage.cs
- _SecureChannel.cs
- TextPenaltyModule.cs
- EventListenerClientSide.cs
- ModuleConfigurationInfo.cs
- PrimitiveXmlSerializers.cs
- MobileErrorInfo.cs
- AbstractDataSvcMapFileLoader.cs
- Convert.cs
- Menu.cs
- EdmItemCollection.OcAssemblyCache.cs
- DropDownList.cs
- Style.cs
- BuiltInPermissionSets.cs
- KnowledgeBase.cs
- SimpleExpression.cs
- SmiSettersStream.cs