Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ApplicationCommands.cs
- ScriptResourceInfo.cs
- ClientSideProviderDescription.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- FlowDocumentPaginator.cs
- Crypto.cs
- OleDbReferenceCollection.cs
- ParseChildrenAsPropertiesAttribute.cs
- DbParameterCollectionHelper.cs
- WindowsListViewSubItem.cs
- UnsafeNativeMethods.cs
- ProfileParameter.cs
- MemoryRecordBuffer.cs
- BinaryObjectInfo.cs
- CheckPair.cs
- ResourceExpression.cs
- TimelineCollection.cs
- XappLauncher.cs
- XappLauncher.cs
- OperationFormatter.cs
- GradientBrush.cs
- HandleExceptionArgs.cs
- ChangeProcessor.cs
- Error.cs
- SByteConverter.cs
- CookieParameter.cs
- IdentityValidationException.cs
- WebPermission.cs
- BitVec.cs
- RenderDataDrawingContext.cs
- StylusTip.cs
- PropertyKey.cs
- FormsAuthenticationConfiguration.cs
- SqlFunctionAttribute.cs
- SmtpLoginAuthenticationModule.cs
- DrawToolTipEventArgs.cs
- Int32Animation.cs
- DbCommandTree.cs
- ProofTokenCryptoHandle.cs
- HostVisual.cs
- TableRowCollection.cs
- InputProcessorProfilesLoader.cs
- ETagAttribute.cs
- DataTable.cs
- altserialization.cs
- HelpProvider.cs
- ConnectionAcceptor.cs
- ListItemCollection.cs
- WindowsTitleBar.cs
- MutableAssemblyCacheEntry.cs
- Set.cs
- ToolStrip.cs
- EntityDataSourceStatementEditorForm.cs
- JsonDeserializer.cs
- Transform3D.cs
- UrlMappingsSection.cs
- XmlMembersMapping.cs
- ResourcePool.cs
- storepermission.cs
- ClientSponsor.cs
- SoapReflectionImporter.cs
- StreamGeometry.cs
- MobileUserControlDesigner.cs
- SourceFileBuildProvider.cs
- EnumBuilder.cs
- StackOverflowException.cs
- UnmanagedMarshal.cs
- SubstitutionList.cs
- AspNetSynchronizationContext.cs
- Types.cs
- AdapterDictionary.cs
- FirstMatchCodeGroup.cs
- ScriptingAuthenticationServiceSection.cs
- TextServicesLoader.cs
- HttpDigestClientCredential.cs
- FloaterParaClient.cs
- KeysConverter.cs
- AssemblyResourceLoader.cs
- URLIdentityPermission.cs
- SizeConverter.cs
- ResourceDisplayNameAttribute.cs
- SwitchLevelAttribute.cs
- AttachedAnnotation.cs
- TextCollapsingProperties.cs
- TransactionCache.cs
- TextRangeEdit.cs
- Number.cs
- MouseBinding.cs
- PolyBezierSegment.cs
- StringUtil.cs
- MasterPageParser.cs
- HttpRuntime.cs
- DataGridViewCellCancelEventArgs.cs
- DataRowExtensions.cs
- FixedDocument.cs
- RootBuilder.cs
- ACL.cs
- OdbcError.cs
- ChannelServices.cs
- MetadataWorkspace.cs