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
- COM2FontConverter.cs
- WebPartDisplayModeCollection.cs
- DispatcherOperation.cs
- PrePrepareMethodAttribute.cs
- PageTheme.cs
- RemoteWebConfigurationHostStream.cs
- entityreference_tresulttype.cs
- DiagnosticTraceSource.cs
- CompilationUtil.cs
- DataTableMappingCollection.cs
- HttpEncoderUtility.cs
- Ref.cs
- XmlTextAttribute.cs
- BindingBase.cs
- CodeTypeMember.cs
- EditingMode.cs
- MetadataArtifactLoaderComposite.cs
- ContractTypeNameElement.cs
- TransactionInterop.cs
- PlainXmlSerializer.cs
- Thickness.cs
- LockingPersistenceProvider.cs
- TextureBrush.cs
- SectionInformation.cs
- StorageAssociationTypeMapping.cs
- RegexRunnerFactory.cs
- OdbcError.cs
- CapabilitiesUse.cs
- DataGridViewRowPostPaintEventArgs.cs
- SqlDataSourceStatusEventArgs.cs
- EndpointNotFoundException.cs
- CompositeScriptReferenceEventArgs.cs
- IisTraceListener.cs
- DragDropHelper.cs
- Quad.cs
- SliderAutomationPeer.cs
- CompleteWizardStep.cs
- DataAdapter.cs
- AssemblyResourceLoader.cs
- ThreadAttributes.cs
- Qualifier.cs
- InkCanvasFeedbackAdorner.cs
- TableStyle.cs
- VectorCollectionConverter.cs
- ResourcesChangeInfo.cs
- WebFaultClientMessageInspector.cs
- ListViewItem.cs
- DataObject.cs
- WindowsGraphicsCacheManager.cs
- LayoutSettings.cs
- Random.cs
- NativeMethodsCLR.cs
- DeviceContexts.cs
- SerTrace.cs
- HiddenFieldPageStatePersister.cs
- SettingsPropertyNotFoundException.cs
- SplitterPanel.cs
- ImageInfo.cs
- ElementHostAutomationPeer.cs
- XmlCustomFormatter.cs
- EntityProxyTypeInfo.cs
- UIElement.cs
- ValueQuery.cs
- ScrollChangedEventArgs.cs
- WindowVisualStateTracker.cs
- MessageSecurityVersionConverter.cs
- Dispatcher.cs
- EncryptedReference.cs
- ScriptControl.cs
- Publisher.cs
- FormViewDeleteEventArgs.cs
- Color.cs
- Menu.cs
- TextPointer.cs
- TypeSystem.cs
- ParenthesizePropertyNameAttribute.cs
- UserInitiatedNavigationPermission.cs
- nulltextnavigator.cs
- RefreshResponseInfo.cs
- RoleBoolean.cs
- base64Transforms.cs
- SelectingProviderEventArgs.cs
- WebAdminConfigurationHelper.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- CodeGenerator.cs
- EventHandlersStore.cs
- UndoEngine.cs
- WebPartZone.cs
- MouseButton.cs
- ColorConverter.cs
- XmlQuerySequence.cs
- TextEditorThreadLocalStore.cs
- UnsafeNativeMethods.cs
- NodeInfo.cs
- HttpListenerRequestUriBuilder.cs
- FileClassifier.cs
- AstNode.cs
- CursorConverter.cs
- TreeViewAutomationPeer.cs
- PngBitmapDecoder.cs