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
- UnionCodeGroup.cs
- SQLBinaryStorage.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- TextBoxRenderer.cs
- XmlCodeExporter.cs
- ViewGenerator.cs
- ScriptingSectionGroup.cs
- ScrollBar.cs
- DefaultParameterValueAttribute.cs
- JsonServiceDocumentSerializer.cs
- DataGridViewCellEventArgs.cs
- Storyboard.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Psha1DerivedKeyGenerator.cs
- FixedBufferAttribute.cs
- WriteStateInfoBase.cs
- ProfilePropertyNameValidator.cs
- HwndHostAutomationPeer.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ControlParameter.cs
- ListItemConverter.cs
- DataStreams.cs
- RemoveStoryboard.cs
- HostingMessageProperty.cs
- xmlsaver.cs
- ExpressionWriter.cs
- Graphics.cs
- ToggleProviderWrapper.cs
- CustomErrorsSectionWrapper.cs
- StrongNameIdentityPermission.cs
- BindingContext.cs
- LinqDataSourceView.cs
- TextDecorations.cs
- ObjectResult.cs
- SectionVisual.cs
- PageVisual.cs
- EastAsianLunisolarCalendar.cs
- ClientBuildManager.cs
- TextureBrush.cs
- PrintDialogDesigner.cs
- DataGridViewDataErrorEventArgs.cs
- CLSCompliantAttribute.cs
- StrokeCollectionDefaultValueFactory.cs
- UrlAuthorizationModule.cs
- RotateTransform3D.cs
- ToggleProviderWrapper.cs
- UiaCoreProviderApi.cs
- CriticalFinalizerObject.cs
- DefaultAssemblyResolver.cs
- TextRangeBase.cs
- ApplicationException.cs
- LinkedDataMemberFieldEditor.cs
- PointLightBase.cs
- CounterCreationData.cs
- grammarelement.cs
- TreeViewItemAutomationPeer.cs
- HttpDebugHandler.cs
- WorkItem.cs
- OutputChannel.cs
- CallContext.cs
- CommonGetThemePartSize.cs
- ServicePoint.cs
- MatrixKeyFrameCollection.cs
- QilPatternFactory.cs
- ContextMenu.cs
- UniqueEventHelper.cs
- PointAnimationBase.cs
- CryptoHelper.cs
- Selector.cs
- InvalidCommandTreeException.cs
- XmlAnyElementAttributes.cs
- TdsParser.cs
- FolderBrowserDialogDesigner.cs
- BatchStream.cs
- MasterPage.cs
- AssemblyHash.cs
- SoapTransportImporter.cs
- Automation.cs
- ConditionalAttribute.cs
- AmbiguousMatchException.cs
- _emptywebproxy.cs
- InheritanceAttribute.cs
- OperationAbortedException.cs
- ConfigXmlWhitespace.cs
- BinaryFormatter.cs
- PaintEvent.cs
- FileClassifier.cs
- CodeMethodReturnStatement.cs
- ComponentEditorPage.cs
- PersonalizationProviderCollection.cs
- infer.cs
- ApplyImportsAction.cs
- MemberAccessException.cs
- TextEditorMouse.cs
- DictionaryTraceRecord.cs
- ToolboxBitmapAttribute.cs
- EntityCodeGenerator.cs
- SchemaManager.cs
- StackSpiller.Bindings.cs
- ListViewAutomationPeer.cs