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
- ThemeInfoAttribute.cs
- UserControlBuildProvider.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- SubtreeProcessor.cs
- TimeSpanConverter.cs
- DataGridPagerStyle.cs
- ProtocolException.cs
- Win32MouseDevice.cs
- SqlDataAdapter.cs
- DescendantBaseQuery.cs
- DataServiceClientException.cs
- StorageAssociationSetMapping.cs
- precedingsibling.cs
- XPathNodeInfoAtom.cs
- HybridObjectCache.cs
- ActivityTypeResolver.xaml.cs
- IfAction.cs
- CatalogZoneBase.cs
- SHA512CryptoServiceProvider.cs
- ProfileManager.cs
- PkcsUtils.cs
- ThousandthOfEmRealPoints.cs
- SettingsBindableAttribute.cs
- Cursors.cs
- SmiXetterAccessMap.cs
- TextUtf8RawTextWriter.cs
- IUnknownConstantAttribute.cs
- EmptyStringExpandableObjectConverter.cs
- DebugInfoGenerator.cs
- FieldNameLookup.cs
- CodeDirectiveCollection.cs
- SettingsSavedEventArgs.cs
- Timeline.cs
- ConnectionStringsSection.cs
- DoubleStorage.cs
- ToolConsole.cs
- AspCompat.cs
- ValueChangedEventManager.cs
- DelegatingTypeDescriptionProvider.cs
- SqlProviderManifest.cs
- SystemInformation.cs
- ConnectivityStatus.cs
- HandleCollector.cs
- HMACMD5.cs
- ViewBox.cs
- CharStorage.cs
- PageParserFilter.cs
- ExtractorMetadata.cs
- GuidelineCollection.cs
- OracleConnectionString.cs
- DataAdapter.cs
- RuleDefinitions.cs
- MouseButton.cs
- UserMapPath.cs
- ListViewItem.cs
- Win32KeyboardDevice.cs
- HttpCacheVaryByContentEncodings.cs
- AmbientLight.cs
- StringFormat.cs
- PackageStore.cs
- HttpConfigurationContext.cs
- DataServiceRequestException.cs
- InternalMappingException.cs
- CompilationLock.cs
- XPathDocumentIterator.cs
- AppLevelCompilationSectionCache.cs
- ICspAsymmetricAlgorithm.cs
- DataSourceGeneratorException.cs
- Exceptions.cs
- ImmComposition.cs
- DesignerActionUIStateChangeEventArgs.cs
- DataGridViewTextBoxCell.cs
- Psha1DerivedKeyGenerator.cs
- unsafenativemethodstextservices.cs
- XmlSchemaObject.cs
- TextTreeTextNode.cs
- RealProxy.cs
- PrefixHandle.cs
- SplitterPanel.cs
- IpcPort.cs
- ProviderIncompatibleException.cs
- CTreeGenerator.cs
- StylusOverProperty.cs
- DragDeltaEventArgs.cs
- CommonXSendMessage.cs
- WorkflowOperationErrorHandler.cs
- ToolStripDropDownItemDesigner.cs
- XmlDictionary.cs
- safex509handles.cs
- TextUtf8RawTextWriter.cs
- ObjectListItem.cs
- ServicePointManagerElement.cs
- StringStorage.cs
- EntityUtil.cs
- SiteOfOriginPart.cs
- SafeRegistryHandle.cs
- Walker.cs
- SessionStateModule.cs
- TextDecorationCollectionConverter.cs
- GeneralTransform2DTo3DTo2D.cs