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
- PeerApplication.cs
- ThemeDirectoryCompiler.cs
- BindingValueChangedEventArgs.cs
- TextElementEnumerator.cs
- PeerCredential.cs
- Camera.cs
- PropertyAccessVisitor.cs
- KerberosSecurityTokenAuthenticator.cs
- Stacktrace.cs
- DecoderExceptionFallback.cs
- FormViewUpdateEventArgs.cs
- formatter.cs
- behaviorssection.cs
- ToolboxDataAttribute.cs
- FrugalList.cs
- EntityDataSourceSelectedEventArgs.cs
- ImageAnimator.cs
- WindowsTitleBar.cs
- ReadOnlyNameValueCollection.cs
- ArrayHelper.cs
- LassoHelper.cs
- XmlParserContext.cs
- ProcessModelInfo.cs
- DoWorkEventArgs.cs
- PreservationFileReader.cs
- SelectionGlyphBase.cs
- WebPartCancelEventArgs.cs
- WebConfigurationManager.cs
- FlowchartSizeFeature.cs
- TextContainerChangedEventArgs.cs
- KnownAssemblyEntry.cs
- Exceptions.cs
- PackageProperties.cs
- WinFormsSecurity.cs
- RepeatButton.cs
- StreamWriter.cs
- ListManagerBindingsCollection.cs
- DocumentPageViewAutomationPeer.cs
- PrintPageEvent.cs
- XmlSchemaDocumentation.cs
- HttpModuleActionCollection.cs
- CommandBinding.cs
- DataGridViewTopRowAccessibleObject.cs
- CompiledQueryCacheKey.cs
- DesignerExtenders.cs
- HtmlShimManager.cs
- DefaultParameterValueAttribute.cs
- DynamicMetaObjectBinder.cs
- ExtendedProtectionPolicyTypeConverter.cs
- FixUp.cs
- ResourceCollectionInfo.cs
- PreservationFileWriter.cs
- CachedCompositeFamily.cs
- PointKeyFrameCollection.cs
- RegexTypeEditor.cs
- CircleHotSpot.cs
- DockPanel.cs
- DesignerActionListCollection.cs
- CodeDomLoader.cs
- TypeDependencyAttribute.cs
- AuthorizationContext.cs
- Pts.cs
- HashUtility.cs
- HostedTcpTransportManager.cs
- linebase.cs
- ObjectMemberMapping.cs
- PointCollection.cs
- Error.cs
- ModifiableIteratorCollection.cs
- ECDiffieHellmanCngPublicKey.cs
- XmlNodeChangedEventArgs.cs
- DbSourceParameterCollection.cs
- WorkflowRuntimeServiceElementCollection.cs
- TextEffect.cs
- SynchronizationContext.cs
- Types.cs
- arabicshape.cs
- ClientTarget.cs
- Win32KeyboardDevice.cs
- ApplicationServicesHostFactory.cs
- InkCanvasFeedbackAdorner.cs
- GroupStyle.cs
- bindurihelper.cs
- KoreanLunisolarCalendar.cs
- FixedHighlight.cs
- CroppedBitmap.cs
- IsolatedStorageSecurityState.cs
- PointCollectionConverter.cs
- Int32RectConverter.cs
- VariableDesigner.xaml.cs
- Lease.cs
- MergeLocalizationDirectives.cs
- DetailsViewDeletedEventArgs.cs
- SelectionPattern.cs
- SystemFonts.cs
- CompressedStack.cs
- FileFormatException.cs
- OracleCommand.cs
- OracleParameter.cs
- ContainerSelectorBehavior.cs