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
- WorkflowWebHostingModule.cs
- COM2EnumConverter.cs
- HtmlInputFile.cs
- SecurityPolicySection.cs
- MouseEvent.cs
- CursorConverter.cs
- ChannelSinkStacks.cs
- DataGridViewComboBoxCell.cs
- XmlNotation.cs
- StylusEditingBehavior.cs
- GifBitmapDecoder.cs
- TextUtf8RawTextWriter.cs
- CategoryGridEntry.cs
- DynamicResourceExtension.cs
- CategoryValueConverter.cs
- HwndTarget.cs
- PriorityQueue.cs
- ServiceObjectContainer.cs
- Rotation3D.cs
- SmiMetaDataProperty.cs
- EditCommandColumn.cs
- XmlArrayItemAttribute.cs
- BooleanSwitch.cs
- OdbcCommand.cs
- ContainsSearchOperator.cs
- MenuItemBindingCollection.cs
- TableRowCollection.cs
- QueueProcessor.cs
- WebPartConnectionsEventArgs.cs
- SQLDateTime.cs
- KeyTimeConverter.cs
- PageClientProxyGenerator.cs
- TreeNodeCollection.cs
- Parameter.cs
- DiscreteKeyFrames.cs
- DesignSurfaceEvent.cs
- Matrix.cs
- HtmlTextBoxAdapter.cs
- DigitShape.cs
- ConditionalDesigner.cs
- List.cs
- BaseAutoFormat.cs
- ComAdminWrapper.cs
- Pair.cs
- ObjectListGeneralPage.cs
- NameHandler.cs
- WebHeaderCollection.cs
- Size3DValueSerializer.cs
- CFGGrammar.cs
- BatchParser.cs
- AnnotationComponentChooser.cs
- ResourcePermissionBase.cs
- ScriptReferenceEventArgs.cs
- PerspectiveCamera.cs
- ProcessProtocolHandler.cs
- BamlBinaryReader.cs
- metadatamappinghashervisitor.cs
- Volatile.cs
- __Filters.cs
- ContainsRowNumberChecker.cs
- XmlDocumentSerializer.cs
- TextTreeTextBlock.cs
- HScrollProperties.cs
- WindowsImpersonationContext.cs
- UICuesEvent.cs
- EditorZone.cs
- VerificationAttribute.cs
- ClientRuntimeConfig.cs
- DrawingContext.cs
- RequestContext.cs
- thaishape.cs
- SimpleExpression.cs
- StructuralComparisons.cs
- SoapAttributeAttribute.cs
- TableRow.cs
- TabPanel.cs
- WebResourceAttribute.cs
- EntityContainer.cs
- SystemNetworkInterface.cs
- EraserBehavior.cs
- XmlUTF8TextReader.cs
- MappingException.cs
- Main.cs
- DeploymentExceptionMapper.cs
- JsonReaderWriterFactory.cs
- JoinElimination.cs
- XhtmlTextWriter.cs
- StringFreezingAttribute.cs
- _AutoWebProxyScriptEngine.cs
- CookieParameter.cs
- ReadOnlyCollectionBase.cs
- Point3DValueSerializer.cs
- SamlAssertion.cs
- ConnectionStringsSection.cs
- QuaternionAnimation.cs
- ChannelParameterCollection.cs
- LineSegment.cs
- ObjectParameterCollection.cs
- SqlMethods.cs
- ListSortDescriptionCollection.cs