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
- TypeBuilder.cs
- PointKeyFrameCollection.cs
- MembershipValidatePasswordEventArgs.cs
- AssemblyBuilder.cs
- HWStack.cs
- RuleSettings.cs
- SqlMethodAttribute.cs
- ToolStripPanelRow.cs
- CommandBindingCollection.cs
- PropertyGridView.cs
- ClassDataContract.cs
- PipelineModuleStepContainer.cs
- Terminate.cs
- InfoCardRSACryptoProvider.cs
- ASCIIEncoding.cs
- EDesignUtil.cs
- MultiSelectRootGridEntry.cs
- HeaderCollection.cs
- AttributeAction.cs
- XPathDescendantIterator.cs
- WebPartMenu.cs
- ConfigXmlDocument.cs
- ImageIndexConverter.cs
- ListControl.cs
- XmlEncodedRawTextWriter.cs
- Style.cs
- ChtmlTextWriter.cs
- DocumentXPathNavigator.cs
- CustomError.cs
- CompiledQuery.cs
- DefaultProfileManager.cs
- XPathDescendantIterator.cs
- LinqDataSourceDisposeEventArgs.cs
- BitmapSizeOptions.cs
- ToolStripOverflowButton.cs
- DnsPermission.cs
- IgnoreFileBuildProvider.cs
- AutomationTextAttribute.cs
- SoapInteropTypes.cs
- RouteUrlExpressionBuilder.cs
- WSDualHttpSecurityMode.cs
- IDReferencePropertyAttribute.cs
- FontDriver.cs
- OleDbCommand.cs
- SimpleExpression.cs
- IntegerValidatorAttribute.cs
- DnsEndpointIdentity.cs
- VirtualPath.cs
- MulticastOption.cs
- IndexOutOfRangeException.cs
- TypeBrowser.xaml.cs
- TranslateTransform3D.cs
- EventArgs.cs
- remotingproxy.cs
- Clipboard.cs
- AliasGenerator.cs
- DWriteFactory.cs
- WebDescriptionAttribute.cs
- PolyBezierSegment.cs
- EntityTypeEmitter.cs
- ServerValidateEventArgs.cs
- PartBasedPackageProperties.cs
- ReachUIElementCollectionSerializerAsync.cs
- UpdatePanelControlTrigger.cs
- CryptoHandle.cs
- StorageAssociationSetMapping.cs
- PolicyChain.cs
- SqlOuterApplyReducer.cs
- XmlSchemaAttributeGroup.cs
- ScrollBar.cs
- FtpWebRequest.cs
- Odbc32.cs
- ErrorRuntimeConfig.cs
- Error.cs
- ComponentCodeDomSerializer.cs
- TextWriter.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- FontStyle.cs
- AutoResetEvent.cs
- DataGridViewComboBoxCell.cs
- XamlSerializerUtil.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- HttpBrowserCapabilitiesBase.cs
- ButtonBaseAdapter.cs
- TextModifier.cs
- GridViewRowPresenter.cs
- BamlRecords.cs
- AutomationElementIdentifiers.cs
- CapabilitiesPattern.cs
- StorageModelBuildProvider.cs
- HttpConfigurationSystem.cs
- MULTI_QI.cs
- FixedSOMSemanticBox.cs
- UpdateCommand.cs
- HttpBufferlessInputStream.cs
- ObjectResult.cs
- FocusChangedEventArgs.cs
- AuthenticationModuleElementCollection.cs
- namescope.cs
- RuleInfoComparer.cs