Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Italic.cs
- CompositeScriptReferenceEventArgs.cs
- WebServiceErrorEvent.cs
- BamlBinaryReader.cs
- ConfigXmlSignificantWhitespace.cs
- WebPageTraceListener.cs
- LinqDataSourceStatusEventArgs.cs
- DataSourceXmlSerializer.cs
- C14NUtil.cs
- codemethodreferenceexpression.cs
- X509WindowsSecurityToken.cs
- StrongNameIdentityPermission.cs
- TagPrefixAttribute.cs
- XmlSchemaComplexContent.cs
- StorageSetMapping.cs
- SqlExpressionNullability.cs
- MenuItemBinding.cs
- SQLInt64.cs
- HttpValueCollection.cs
- LocalizableResourceBuilder.cs
- EntityStoreSchemaFilterEntry.cs
- CompareInfo.cs
- BindValidationContext.cs
- PropertyTabAttribute.cs
- InheritanceContextHelper.cs
- SiteOfOriginPart.cs
- ExtractedStateEntry.cs
- odbcmetadatafactory.cs
- ApplicationTrust.cs
- WithStatement.cs
- DropDownHolder.cs
- CachedPathData.cs
- MsdtcClusterUtils.cs
- MasterPageParser.cs
- BufferedStream.cs
- EventSinkHelperWriter.cs
- DashStyle.cs
- ProfessionalColors.cs
- CircleHotSpot.cs
- FileDialog_Vista_Interop.cs
- SignedXml.cs
- PlainXmlDeserializer.cs
- SqlBulkCopyColumnMappingCollection.cs
- ErrorProvider.cs
- StorageEntityContainerMapping.cs
- StringSource.cs
- KeyboardNavigation.cs
- VersionPair.cs
- DataServiceProviderWrapper.cs
- SafeRightsManagementPubHandle.cs
- BuildResult.cs
- PersonalizationStateQuery.cs
- MessageDispatch.cs
- CalendarBlackoutDatesCollection.cs
- _SslStream.cs
- dtdvalidator.cs
- VSDExceptions.cs
- ReflectionPermission.cs
- FixedFindEngine.cs
- XPathChildIterator.cs
- TraceXPathNavigator.cs
- NativeMethods.cs
- ComponentCommands.cs
- ObjectTag.cs
- XPathChildIterator.cs
- ExpressionContext.cs
- RealizationDrawingContextWalker.cs
- BaseAsyncResult.cs
- NamedElement.cs
- PermissionSet.cs
- XPathPatternBuilder.cs
- ContractHandle.cs
- CounterCreationDataCollection.cs
- ToolBarButton.cs
- RouteParametersHelper.cs
- ProgressBar.cs
- CheckBox.cs
- ListInitExpression.cs
- XmlSchemaAttributeGroup.cs
- UnaryNode.cs
- SourceInterpreter.cs
- MediaCommands.cs
- CopyAction.cs
- ConfigXmlElement.cs
- RTTrackingProfile.cs
- ScrollEventArgs.cs
- Select.cs
- CryptoApi.cs
- RectIndependentAnimationStorage.cs
- AttributeCollection.cs
- CachedFontFamily.cs
- _KerberosClient.cs
- DocComment.cs
- TextEditorParagraphs.cs
- WebBrowserBase.cs
- parserscommon.cs
- ChineseLunisolarCalendar.cs
- SkinBuilder.cs
- GenericAuthenticationEventArgs.cs
- XmlSchemaParticle.cs