Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ControlTemplate.cs
- ArrayWithOffset.cs
- Brush.cs
- _LoggingObject.cs
- BitVector32.cs
- CodeTypeParameter.cs
- CodeMemberMethod.cs
- SafeSystemMetrics.cs
- QualificationDataAttribute.cs
- EllipticalNodeOperations.cs
- StorageEntityContainerMapping.cs
- AddressHeaderCollectionElement.cs
- PropertyPushdownHelper.cs
- ResourceReferenceExpressionConverter.cs
- CacheOutputQuery.cs
- HttpRawResponse.cs
- SecurityCriticalDataForSet.cs
- DispatchChannelSink.cs
- AdornerLayer.cs
- HttpModule.cs
- CodeDelegateInvokeExpression.cs
- FileLogRecordHeader.cs
- PolicyStatement.cs
- AggregatePushdown.cs
- SendKeys.cs
- AuthenticatedStream.cs
- DocumentReference.cs
- XmlSchemaSet.cs
- QuaternionAnimation.cs
- ProgressBar.cs
- KnownTypesHelper.cs
- SwitchAttribute.cs
- Dictionary.cs
- OutOfMemoryException.cs
- VisualProxy.cs
- SqlCacheDependencyDatabase.cs
- CompensationDesigner.cs
- httpapplicationstate.cs
- WinCategoryAttribute.cs
- CollectionViewSource.cs
- MembershipValidatePasswordEventArgs.cs
- WebServiceHost.cs
- MarshalByValueComponent.cs
- SqlStatistics.cs
- CodeTypeParameter.cs
- xml.cs
- InputScope.cs
- DispatcherOperation.cs
- LayoutEngine.cs
- XmlAttributeAttribute.cs
- CorrelationService.cs
- PropertyChangeTracker.cs
- LinkLabel.cs
- TypeInfo.cs
- WindowsListViewGroupHelper.cs
- DataRowChangeEvent.cs
- MD5CryptoServiceProvider.cs
- TreeNode.cs
- CreateUserErrorEventArgs.cs
- BuildManagerHost.cs
- DataTableClearEvent.cs
- ISAPIWorkerRequest.cs
- BitmapVisualManager.cs
- webeventbuffer.cs
- TraversalRequest.cs
- TrustManagerPromptUI.cs
- TypedTableGenerator.cs
- ProgressBarRenderer.cs
- LayoutTable.cs
- Property.cs
- DataServiceContext.cs
- SqlSelectClauseBuilder.cs
- Socket.cs
- DefaultExpressionVisitor.cs
- MD5CryptoServiceProvider.cs
- SizeFConverter.cs
- SqlServices.cs
- StylusShape.cs
- UrlRoutingHandler.cs
- WindowsAuthenticationModule.cs
- SeverityFilter.cs
- DataBindingExpressionBuilder.cs
- GenericTextProperties.cs
- DefaultValueAttribute.cs
- Attribute.cs
- SerializationUtilities.cs
- PrintPageEvent.cs
- ByteAnimationUsingKeyFrames.cs
- DataSpaceManager.cs
- StorageComplexTypeMapping.cs
- MouseGestureConverter.cs
- HttpHandlersSection.cs
- SizeChangedEventArgs.cs
- StateRuntime.cs
- FilteredDataSetHelper.cs
- Trace.cs
- Quad.cs
- RuleRef.cs
- MDIControlStrip.cs
- QueryExtender.cs