Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / UI / WebControls / RepeaterItem.cs / 1305376 / 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; ////// [ ToolboxItem(false) ] 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; ////// [ ToolboxItem(false) ] 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
- EntitySqlQueryBuilder.cs
- WmpBitmapEncoder.cs
- ProxyWebPartManager.cs
- Decorator.cs
- QueryGenerator.cs
- LoginUtil.cs
- WizardStepBase.cs
- InkPresenter.cs
- Queue.cs
- FocusTracker.cs
- StringFreezingAttribute.cs
- dsa.cs
- WebBrowsableAttribute.cs
- FormDocumentDesigner.cs
- MatcherBuilder.cs
- EventHandlerList.cs
- Stroke.cs
- SimpleRecyclingCache.cs
- SchemaNotation.cs
- ColumnReorderedEventArgs.cs
- UiaCoreProviderApi.cs
- XmlWellformedWriter.cs
- Path.cs
- SecurityHelper.cs
- AuthenticationException.cs
- CheckBox.cs
- Selection.cs
- EventLogEntryCollection.cs
- mda.cs
- Monitor.cs
- ImageField.cs
- ProfileGroupSettingsCollection.cs
- RelationshipConverter.cs
- JsonSerializer.cs
- EntityClientCacheEntry.cs
- ApplicationProxyInternal.cs
- QilTargetType.cs
- Column.cs
- AccessibilityApplicationManager.cs
- GiveFeedbackEventArgs.cs
- XmlSchemaSimpleTypeRestriction.cs
- StandardBindingImporter.cs
- PageCanvasSize.cs
- BulletedListEventArgs.cs
- ChangeToolStripParentVerb.cs
- SmtpAuthenticationManager.cs
- TypedReference.cs
- SimpleBitVector32.cs
- XmlWellformedWriter.cs
- ProviderIncompatibleException.cs
- MessageAction.cs
- RunWorkerCompletedEventArgs.cs
- ParameterModifier.cs
- CardSpacePolicyElement.cs
- HostedElements.cs
- FormattedText.cs
- RetrieveVirtualItemEventArgs.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CodePageUtils.cs
- PageThemeParser.cs
- RecipientInfo.cs
- SignatureTargetIdManager.cs
- StylusPointPropertyUnit.cs
- DataGridViewLayoutData.cs
- TaskHelper.cs
- OdbcDataAdapter.cs
- DataBindingHandlerAttribute.cs
- TextSelectionProcessor.cs
- UnsafeCollabNativeMethods.cs
- DataSet.cs
- UserInitiatedNavigationPermission.cs
- XPathParser.cs
- GridViewPageEventArgs.cs
- TableStyle.cs
- ControlBuilder.cs
- InkCanvasSelection.cs
- DependencyObjectCodeDomSerializer.cs
- EventHandlersDesigner.cs
- CodeDomLocalizationProvider.cs
- PasswordRecovery.cs
- HttpProfileGroupBase.cs
- ServiceBusyException.cs
- ProfileManager.cs
- ViewValidator.cs
- PerformanceCountersElement.cs
- PartitionedStreamMerger.cs
- FieldInfo.cs
- TriggerAction.cs
- LinkUtilities.cs
- IndexingContentUnit.cs
- FileNotFoundException.cs
- TextReader.cs
- OleDbInfoMessageEvent.cs
- FixedPageAutomationPeer.cs
- Compress.cs
- CustomErrorCollection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DBSchemaRow.cs
- HttpResponseHeader.cs
- HttpCacheVary.cs