Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ValidationService.cs
- _SslSessionsCache.cs
- ConfigXmlCDataSection.cs
- SqlMultiplexer.cs
- QueryResultOp.cs
- WindowsGraphics.cs
- ApplicationSecurityManager.cs
- InputScopeAttribute.cs
- ServiceDescriptionData.cs
- SpellerHighlightLayer.cs
- DataServiceEntityAttribute.cs
- XPathNodeList.cs
- Application.cs
- SessionIDManager.cs
- BindingCompleteEventArgs.cs
- ParallelQuery.cs
- HMACRIPEMD160.cs
- DBConnectionString.cs
- TextView.cs
- DesignerValidationSummaryAdapter.cs
- TableProviderWrapper.cs
- GridViewDesigner.cs
- EntityDataSourceViewSchema.cs
- BaseAsyncResult.cs
- SessionEndingCancelEventArgs.cs
- ExpressionWriter.cs
- LifetimeManager.cs
- XsdBuilder.cs
- RegistryPermission.cs
- TypeGeneratedEventArgs.cs
- SizeValueSerializer.cs
- FlowLayoutPanel.cs
- EnumerableRowCollection.cs
- FontStretches.cs
- MetabaseServerConfig.cs
- EntryWrittenEventArgs.cs
- XmlParser.cs
- CodeLabeledStatement.cs
- invalidudtexception.cs
- EntityConnection.cs
- NameValueSectionHandler.cs
- RegexTree.cs
- BitmapEffectrendercontext.cs
- Brush.cs
- EntityDesignerBuildProvider.cs
- DispatchChannelSink.cs
- ETagAttribute.cs
- DynamicResourceExtension.cs
- DefaultValueTypeConverter.cs
- DoubleAnimationUsingKeyFrames.cs
- DoubleStorage.cs
- FunctionQuery.cs
- SqlDataSourceCache.cs
- DataView.cs
- IBuiltInEvidence.cs
- NativeWindow.cs
- TemplatedMailWebEventProvider.cs
- QueryOutputWriter.cs
- ConnectionManagementElementCollection.cs
- DataControlHelper.cs
- CodeStatementCollection.cs
- LoginView.cs
- DefaultCommandConverter.cs
- TogglePattern.cs
- CodeTypeConstructor.cs
- EditBehavior.cs
- TransformerConfigurationWizardBase.cs
- QilPatternVisitor.cs
- JoinCqlBlock.cs
- ClassHandlersStore.cs
- KeyValueInternalCollection.cs
- DiscardableAttribute.cs
- Form.cs
- PersistenceException.cs
- CurrentTimeZone.cs
- HttpValueCollection.cs
- SqlGenerator.cs
- SecurityPermission.cs
- TargetControlTypeAttribute.cs
- UpWmlPageAdapter.cs
- WebPartEditVerb.cs
- XmlDataLoader.cs
- CompressEmulationStream.cs
- MeshGeometry3D.cs
- PrinterUnitConvert.cs
- ToolStripEditorManager.cs
- JoinGraph.cs
- TokenizerHelper.cs
- XPathSingletonIterator.cs
- RowParagraph.cs
- DataGridViewCellFormattingEventArgs.cs
- DataTemplateSelector.cs
- HttpCapabilitiesBase.cs
- LinqDataView.cs
- SkewTransform.cs
- RulePatternOps.cs
- BuildResult.cs
- XmlValidatingReaderImpl.cs
- TraceData.cs
- COM2PropertyDescriptor.cs