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
- StorageEntitySetMapping.cs
- Form.cs
- ToolConsole.cs
- ADConnectionHelper.cs
- ImageEditor.cs
- PreviewKeyDownEventArgs.cs
- WmfPlaceableFileHeader.cs
- FileFormatException.cs
- InstanceCreationEditor.cs
- GenericTextProperties.cs
- RootAction.cs
- CompilerResults.cs
- CharUnicodeInfo.cs
- WebControlsSection.cs
- XmlSchemaCompilationSettings.cs
- AccessViolationException.cs
- UrlUtility.cs
- WriterOutput.cs
- OledbConnectionStringbuilder.cs
- CacheDependency.cs
- PageThemeParser.cs
- WebPartMenu.cs
- FixedHyperLink.cs
- SQLUtility.cs
- RuntimeHandles.cs
- XmlSchemaParticle.cs
- ObjectQueryState.cs
- SoapUnknownHeader.cs
- RegexReplacement.cs
- ValueType.cs
- HebrewCalendar.cs
- SQLInt32.cs
- InternalTransaction.cs
- DropAnimation.xaml.cs
- Collection.cs
- NativeMethods.cs
- TextLineBreak.cs
- RangeValuePattern.cs
- Size.cs
- DataGridViewTextBoxColumn.cs
- StorageTypeMapping.cs
- PeerNameRecordCollection.cs
- IncrementalReadDecoders.cs
- COM2IProvidePropertyBuilderHandler.cs
- SourceInterpreter.cs
- XmlSerializerSection.cs
- UnauthorizedWebPart.cs
- AliasGenerator.cs
- DependsOnAttribute.cs
- ColorTransformHelper.cs
- ArrayList.cs
- DecoderFallback.cs
- FontDriver.cs
- NeutralResourcesLanguageAttribute.cs
- RadioButtonRenderer.cs
- Sql8ConformanceChecker.cs
- InputEventArgs.cs
- entityreference_tresulttype.cs
- Compensate.cs
- MenuItem.cs
- login.cs
- IndicCharClassifier.cs
- KnownIds.cs
- MSAANativeProvider.cs
- Point4DConverter.cs
- ZoomingMessageFilter.cs
- AuthenticationSection.cs
- TemplateColumn.cs
- ServiceModelEnumValidatorAttribute.cs
- DbConnectionClosed.cs
- ReverseQueryOperator.cs
- ErrorFormatterPage.cs
- WebBrowserEvent.cs
- ClientUtils.cs
- ColumnMapProcessor.cs
- ConnectionPoint.cs
- TypeContext.cs
- AspNetHostingPermission.cs
- TreeIterators.cs
- CoreSwitches.cs
- EmptyTextWriter.cs
- WebPartTransformerCollection.cs
- DetailsViewRow.cs
- BaseTemplateBuildProvider.cs
- HttpHandler.cs
- ConsumerConnectionPointCollection.cs
- BindingExpression.cs
- ClassicBorderDecorator.cs
- DataRecord.cs
- OracleBFile.cs
- SchemaLookupTable.cs
- isolationinterop.cs
- DataGridTextBoxColumn.cs
- DbParameterCollectionHelper.cs
- EncryptedPackage.cs
- XamlSerializationHelper.cs
- ParameterModifier.cs
- BufferedGraphics.cs
- Binding.cs
- SequenceFullException.cs