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
- HtmlElementEventArgs.cs
- WindowsListViewItemStartMenu.cs
- SvcFileManager.cs
- PathGeometry.cs
- OdbcRowUpdatingEvent.cs
- SchemaImporterExtension.cs
- NetTcpBindingElement.cs
- CultureSpecificStringDictionary.cs
- DirectoryNotFoundException.cs
- MatrixCamera.cs
- AttributeEmitter.cs
- VersionedStreamOwner.cs
- AutomationPeer.cs
- _TransmitFileOverlappedAsyncResult.cs
- RTLAwareMessageBox.cs
- DesignTableCollection.cs
- COM2EnumConverter.cs
- PostBackTrigger.cs
- CancellationState.cs
- VisualProxy.cs
- ExtendedProtectionPolicy.cs
- RecordsAffectedEventArgs.cs
- InputEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- BamlStream.cs
- Geometry3D.cs
- DataGridViewAccessibleObject.cs
- ObjectStateFormatter.cs
- OverflowException.cs
- QuaternionRotation3D.cs
- FactoryGenerator.cs
- AccessKeyManager.cs
- DotAtomReader.cs
- FloatUtil.cs
- HttpApplication.cs
- CommonRemoteMemoryBlock.cs
- InputLanguageSource.cs
- ScrollBar.cs
- filewebrequest.cs
- TypeConverterHelper.cs
- FusionWrap.cs
- FormatStringEditor.cs
- EllipticalNodeOperations.cs
- BamlLocalizableResourceKey.cs
- SecurityHelper.cs
- CodeBlockBuilder.cs
- DataListItem.cs
- TypeInitializationException.cs
- WizardForm.cs
- FacetValues.cs
- ElementUtil.cs
- FullTextLine.cs
- GACIdentityPermission.cs
- DoubleKeyFrameCollection.cs
- OrderToken.cs
- InstancePersistenceContext.cs
- ResolveDuplex11AsyncResult.cs
- COAUTHINFO.cs
- DataBoundControl.cs
- WebBrowserUriTypeConverter.cs
- EntityDataSourceStatementEditor.cs
- FusionWrap.cs
- EdmItemCollection.OcAssemblyCache.cs
- EventManager.cs
- DataGridTableStyleMappingNameEditor.cs
- AppSettingsExpressionBuilder.cs
- PointAnimationUsingKeyFrames.cs
- HScrollProperties.cs
- XmlRawWriter.cs
- Tokenizer.cs
- DataGridViewLinkCell.cs
- TypeDelegator.cs
- EnlistmentState.cs
- StringStorage.cs
- Parallel.cs
- EntityCommandDefinition.cs
- HyperLinkField.cs
- SHA512Managed.cs
- FileFormatException.cs
- StylusSystemGestureEventArgs.cs
- ContentPresenter.cs
- BufferedGraphicsContext.cs
- TagPrefixAttribute.cs
- MobileRedirect.cs
- SecurityChannelFactory.cs
- EntityDataSourceContextCreatedEventArgs.cs
- RadioButtonList.cs
- RuntimeArgumentHandle.cs
- AttachmentService.cs
- WebPartConnectionCollection.cs
- mediapermission.cs
- PerCallInstanceContextProvider.cs
- WpfXamlLoader.cs
- DeploymentSection.cs
- HttpHandlerActionCollection.cs
- ValueType.cs
- QueryContext.cs
- DataRecordInternal.cs
- CopyOfAction.cs
- SoapObjectReader.cs