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
- NameService.cs
- ConfigurationStrings.cs
- ServiceHttpModule.cs
- GiveFeedbackEventArgs.cs
- CatalogPartCollection.cs
- FontStyle.cs
- TextTreeInsertUndoUnit.cs
- LZCodec.cs
- WorkflowOwnershipException.cs
- LogicalTreeHelper.cs
- Exceptions.cs
- ConfigurationPropertyAttribute.cs
- ParentUndoUnit.cs
- ToolboxCategory.cs
- SelectionChangedEventArgs.cs
- DataGridHyperlinkColumn.cs
- Interfaces.cs
- DataSourceControl.cs
- XamlStyleSerializer.cs
- webeventbuffer.cs
- UiaCoreApi.cs
- FormatVersion.cs
- httpstaticobjectscollection.cs
- EntityCommandExecutionException.cs
- FormViewDeleteEventArgs.cs
- FrugalList.cs
- DoubleCollection.cs
- TextStore.cs
- RewritingValidator.cs
- SplashScreenNativeMethods.cs
- CompatibleIComparer.cs
- CreateUserWizard.cs
- DataSourceHelper.cs
- ProxyHwnd.cs
- Root.cs
- WindowsFormsHelpers.cs
- ReflectionUtil.cs
- CaseInsensitiveOrdinalStringComparer.cs
- BrowserCapabilitiesFactoryBase.cs
- MessageDroppedTraceRecord.cs
- Cursors.cs
- WebPartConnectionsCancelEventArgs.cs
- ApplyImportsAction.cs
- Transform3DGroup.cs
- DiagnosticSection.cs
- QilGeneratorEnv.cs
- AttributeCollection.cs
- DbDeleteCommandTree.cs
- PageParser.cs
- DeflateEmulationStream.cs
- TaiwanLunisolarCalendar.cs
- ErrorFormatterPage.cs
- Expander.cs
- SpellerStatusTable.cs
- AttributeEmitter.cs
- Dynamic.cs
- ConnectionManagementSection.cs
- DataGridViewCellValidatingEventArgs.cs
- PropertyValueChangedEvent.cs
- BitmapEffectDrawingContextWalker.cs
- BrowserCapabilitiesFactory.cs
- ProxyWebPartManager.cs
- InputLangChangeEvent.cs
- OdbcDataReader.cs
- CqlQuery.cs
- SqlMetaData.cs
- SemaphoreFullException.cs
- NetDispatcherFaultException.cs
- MouseActionConverter.cs
- SoapSchemaMember.cs
- UniqueConstraint.cs
- SimpleTextLine.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- BitmapEffectInput.cs
- Faults.cs
- SchemaType.cs
- Point4D.cs
- WebPartsPersonalization.cs
- HttpCapabilitiesSectionHandler.cs
- JsonDeserializer.cs
- ObjectViewListener.cs
- BitStack.cs
- Graphics.cs
- httpserverutility.cs
- XmlKeywords.cs
- ToolBarDesigner.cs
- WhereQueryOperator.cs
- ControlDesigner.cs
- GridViewCommandEventArgs.cs
- SecurityPermission.cs
- EntityDataSourceValidationException.cs
- EntityUtil.cs
- TextBox.cs
- Triplet.cs
- LoadRetryAsyncResult.cs
- StatusBarPanel.cs
- XmlQueryOutput.cs
- BooleanProjectedSlot.cs
- LoginView.cs
- DispatchWrapper.cs