Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlWrappingReader.cs
- webproxy.cs
- ValueType.cs
- OdbcStatementHandle.cs
- XpsTokenContext.cs
- WindowsMenu.cs
- CollectionDataContract.cs
- DataGridPagerStyle.cs
- ExpressionPrinter.cs
- GetPageNumberCompletedEventArgs.cs
- COM2TypeInfoProcessor.cs
- CodePageUtils.cs
- TimeSpanSecondsConverter.cs
- TextAutomationPeer.cs
- InnerItemCollectionView.cs
- WindowsFormsHost.cs
- FlatButtonAppearance.cs
- CustomError.cs
- _LocalDataStore.cs
- PermissionListSet.cs
- DBDataPermissionAttribute.cs
- BulletChrome.cs
- DebugController.cs
- DateTimeFormatInfoScanner.cs
- NullRuntimeConfig.cs
- HierarchicalDataSourceControl.cs
- Guid.cs
- WebPartDisplayModeEventArgs.cs
- ReadOnlyDictionary.cs
- Assert.cs
- TextDecorationLocationValidation.cs
- ContactManager.cs
- VideoDrawing.cs
- SpecularMaterial.cs
- ReadOnlyDictionary.cs
- PathFigureCollection.cs
- PackWebResponse.cs
- Parameter.cs
- CommandPlan.cs
- CodeGen.cs
- EndpointConfigContainer.cs
- QilTargetType.cs
- XmlAttributeHolder.cs
- HttpPostedFile.cs
- CommonGetThemePartSize.cs
- InternalRelationshipCollection.cs
- HTTPNotFoundHandler.cs
- PolicyManager.cs
- Tool.cs
- ILGenerator.cs
- AssociatedControlConverter.cs
- DbDataSourceEnumerator.cs
- MultiSelectRootGridEntry.cs
- OdbcCommandBuilder.cs
- FreezableDefaultValueFactory.cs
- SqlRecordBuffer.cs
- DeploymentSectionCache.cs
- ExtendedPropertyDescriptor.cs
- TabPage.cs
- LeftCellWrapper.cs
- TemplatedWizardStep.cs
- WindowsTitleBar.cs
- GridSplitter.cs
- Config.cs
- TdsRecordBufferSetter.cs
- DesignBindingEditor.cs
- HijriCalendar.cs
- CellParagraph.cs
- Enum.cs
- RemoteCryptoTokenProvider.cs
- ServiceModelInstallComponent.cs
- LinkedResource.cs
- KeyValuePair.cs
- UrlParameterWriter.cs
- InputBinding.cs
- MappingModelBuildProvider.cs
- WebPartConnectionsEventArgs.cs
- TypeToken.cs
- DataIdProcessor.cs
- MenuAutomationPeer.cs
- ObjectToModelValueConverter.cs
- AssociatedControlConverter.cs
- StringDictionaryCodeDomSerializer.cs
- SchemaMapping.cs
- MetabaseReader.cs
- SerializerDescriptor.cs
- ListItemParagraph.cs
- wgx_render.cs
- StringStorage.cs
- SafeMemoryMappedFileHandle.cs
- translator.cs
- EncoderParameters.cs
- OdbcStatementHandle.cs
- BoolExpressionVisitors.cs
- DataServiceBuildProvider.cs
- MatrixTransform.cs
- ToolStripSplitButton.cs
- EntityFrameworkVersions.cs
- TextBlockAutomationPeer.cs
- HttpCachePolicyWrapper.cs