Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RegexInterpreter.cs
- TdsValueSetter.cs
- DataGridRowDetailsEventArgs.cs
- Transform3DGroup.cs
- EpmSyndicationContentSerializer.cs
- InternalCache.cs
- ColumnMapTranslator.cs
- ColumnReorderedEventArgs.cs
- XmlParser.cs
- CompilerScope.Storage.cs
- SAPICategories.cs
- CatalogPartChrome.cs
- SHA256Managed.cs
- ParameterElement.cs
- KeyValueConfigurationElement.cs
- HttpCacheParams.cs
- FlowDocumentPageViewerAutomationPeer.cs
- SequentialWorkflowHeaderFooter.cs
- Expressions.cs
- ListViewDataItem.cs
- EncoderFallback.cs
- DataRowCollection.cs
- AutoGeneratedFieldProperties.cs
- shaperfactoryquerycacheentry.cs
- CommonDialog.cs
- ICspAsymmetricAlgorithm.cs
- srgsitem.cs
- MasterPageBuildProvider.cs
- FixUpCollection.cs
- Native.cs
- RowBinding.cs
- TreeIterator.cs
- ProfileManager.cs
- TextServicesDisplayAttributePropertyRanges.cs
- OleDbDataReader.cs
- TraceContextEventArgs.cs
- UnmanagedMemoryAccessor.cs
- Model3D.cs
- HostedHttpTransportManager.cs
- AssociatedControlConverter.cs
- SafeFileMapViewHandle.cs
- EventProperty.cs
- WebPartEditVerb.cs
- PresentationSource.cs
- ObjectViewListener.cs
- Timer.cs
- TablePattern.cs
- XmlQueryType.cs
- UnaryNode.cs
- InheritedPropertyChangedEventArgs.cs
- _ScatterGatherBuffers.cs
- SafeLocalAllocation.cs
- DeleteHelper.cs
- KeyValuePair.cs
- CapabilitiesUse.cs
- ManagementException.cs
- SrgsDocumentParser.cs
- ProjectionPruner.cs
- WebPartVerbCollection.cs
- WebRequestModuleElementCollection.cs
- mactripleDES.cs
- CodeTypeMemberCollection.cs
- Section.cs
- ExtendedPropertyDescriptor.cs
- PeerToPeerException.cs
- MaterialCollection.cs
- GiveFeedbackEventArgs.cs
- Floater.cs
- DesignTimeParseData.cs
- CoreSwitches.cs
- ProxySimple.cs
- StringSource.cs
- SecurityTokenSerializer.cs
- EntityDataSourceState.cs
- CacheOutputQuery.cs
- TableLayoutStyle.cs
- ObjectCloneHelper.cs
- Content.cs
- CapabilitiesAssignment.cs
- Match.cs
- EDesignUtil.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- LocatorGroup.cs
- EntityCommandExecutionException.cs
- WebServiceClientProxyGenerator.cs
- FlowNode.cs
- PersonalizablePropertyEntry.cs
- IsolatedStorageFile.cs
- CompensatableTransactionScopeActivityDesigner.cs
- TextureBrush.cs
- HtmlTitle.cs
- SqlProcedureAttribute.cs
- WithParamAction.cs
- RegexRunner.cs
- UnmanagedMemoryStream.cs
- Vector3DConverter.cs
- OleDbConnectionInternal.cs
- SqlStatistics.cs
- EntityViewGenerationAttribute.cs
- HttpApplication.cs