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
- InfoCardSchemas.cs
- NavigationFailedEventArgs.cs
- GenericWebPart.cs
- CurrentTimeZone.cs
- SystemInfo.cs
- FolderBrowserDialog.cs
- XmlName.cs
- EndpointDiscoveryMetadata.cs
- RevocationPoint.cs
- PersonalizationStateQuery.cs
- BaseAutoFormat.cs
- ByteStorage.cs
- UrlMappingCollection.cs
- StringUtil.cs
- GeneralTransform2DTo3D.cs
- SynchronizationLockException.cs
- ProviderConnectionPoint.cs
- ToolStripOverflowButton.cs
- WebConfigurationManager.cs
- Button.cs
- EntityContainerRelationshipSet.cs
- CodeCastExpression.cs
- DeploymentExceptionMapper.cs
- RoleManagerModule.cs
- XmlIterators.cs
- DataGrid.cs
- ExchangeUtilities.cs
- TextEditorDragDrop.cs
- CheckBoxRenderer.cs
- CustomErrorsSection.cs
- XPathQilFactory.cs
- FormatException.cs
- ExpressionStringBuilder.cs
- KeySplineConverter.cs
- RouteItem.cs
- CompositeTypefaceMetrics.cs
- KeyMatchBuilder.cs
- DirectoryInfo.cs
- SafeNativeMethods.cs
- NameValueCollection.cs
- XmlDocumentSurrogate.cs
- TokenizerHelper.cs
- TransformerConfigurationWizardBase.cs
- NativeObjectSecurity.cs
- OleDbMetaDataFactory.cs
- Operator.cs
- HostProtectionException.cs
- precedingsibling.cs
- StubHelpers.cs
- InvalidProgramException.cs
- TypeReference.cs
- translator.cs
- ImageListStreamer.cs
- Rijndael.cs
- UInt16Converter.cs
- MissingMethodException.cs
- DateTimeConverter.cs
- DrawListViewItemEventArgs.cs
- ResXDataNode.cs
- LazyInitializer.cs
- JsonEncodingStreamWrapper.cs
- SecurityDescriptor.cs
- TagPrefixAttribute.cs
- BehaviorDragDropEventArgs.cs
- ConcatQueryOperator.cs
- BitmapEffectDrawingContextState.cs
- Validator.cs
- EntityContainer.cs
- SupportsEventValidationAttribute.cs
- ProcessInfo.cs
- DebugInfoGenerator.cs
- MimeTypeAttribute.cs
- TextComposition.cs
- AQNBuilder.cs
- FormParameter.cs
- CodeTypeParameterCollection.cs
- TheQuery.cs
- MethodBuilder.cs
- ActivityCompletionCallbackWrapper.cs
- AnimationClock.cs
- PenContext.cs
- ResourceDisplayNameAttribute.cs
- Viewport3DAutomationPeer.cs
- WasNotInstalledException.cs
- TransformDescriptor.cs
- SelectionGlyph.cs
- NativeMethods.cs
- ServicesUtilities.cs
- HandlerBase.cs
- sitestring.cs
- StorageAssociationTypeMapping.cs
- DataGridBoolColumn.cs
- MemberBinding.cs
- ReadOnlyDataSourceView.cs
- RawUIStateInputReport.cs
- MobileComponentEditorPage.cs
- ToolStripSplitStackLayout.cs
- WebExceptionStatus.cs
- XmlSerializer.cs
- AppearanceEditorPart.cs