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
- EntityDescriptor.cs
- Material.cs
- DrawingBrush.cs
- EnglishPluralizationService.cs
- MultilineStringEditor.cs
- TaiwanCalendar.cs
- EntityAdapter.cs
- WebResponse.cs
- XmlFormatWriterGenerator.cs
- ValidatingPropertiesEventArgs.cs
- unitconverter.cs
- _NetworkingPerfCounters.cs
- ContainerUIElement3D.cs
- Shape.cs
- prompt.cs
- BamlCollectionHolder.cs
- GridViewEditEventArgs.cs
- CookielessData.cs
- ConnectionStringsSection.cs
- ZeroOpNode.cs
- FileDialogPermission.cs
- AsnEncodedData.cs
- SimpleTableProvider.cs
- XNodeValidator.cs
- Tag.cs
- TextFragmentEngine.cs
- ObjectManager.cs
- Content.cs
- BufferModeSettings.cs
- ClickablePoint.cs
- MulticastOption.cs
- HostUtils.cs
- ResolveNextArgumentWorkItem.cs
- SessionViewState.cs
- CLRBindingWorker.cs
- OutOfMemoryException.cs
- StylusPoint.cs
- path.cs
- PrivateFontCollection.cs
- CultureInfo.cs
- TypeUsageBuilder.cs
- GlyphingCache.cs
- LocatorPart.cs
- LogSwitch.cs
- SqlConnectionString.cs
- FormsAuthenticationUser.cs
- Roles.cs
- EntityDataSourceUtil.cs
- _NetworkingPerfCounters.cs
- XPathQilFactory.cs
- DLinqColumnProvider.cs
- PartDesigner.cs
- XmlCountingReader.cs
- WebPartCatalogCloseVerb.cs
- XsltLibrary.cs
- UriSection.cs
- _BasicClient.cs
- LicFileLicenseProvider.cs
- CodeDomSerializerException.cs
- Rule.cs
- ProcessThreadCollection.cs
- ManipulationStartingEventArgs.cs
- TextFormatterHost.cs
- LocatorBase.cs
- DiscreteKeyFrames.cs
- ResourceDescriptionAttribute.cs
- EntityObject.cs
- ComboBoxItem.cs
- SimpleHandlerFactory.cs
- BooleanKeyFrameCollection.cs
- AppDomainManager.cs
- AssemblyBuilder.cs
- mansign.cs
- CommentAction.cs
- ObjectStateManagerMetadata.cs
- CheckBoxDesigner.cs
- handlecollector.cs
- ApplicationException.cs
- CheckBoxStandardAdapter.cs
- JsonWriter.cs
- InputProcessorProfiles.cs
- DetailsViewModeEventArgs.cs
- StringReader.cs
- FolderBrowserDialog.cs
- CommandSet.cs
- Vector3DIndependentAnimationStorage.cs
- DataGridViewDataConnection.cs
- DataControlLinkButton.cs
- ProfessionalColors.cs
- SerialReceived.cs
- ServiceObjectContainer.cs
- MetafileHeaderWmf.cs
- Padding.cs
- TextAnchor.cs
- AutomationEvent.cs
- AssociationTypeEmitter.cs
- BamlBinaryReader.cs
- ObjectParameter.cs
- TokenFactoryFactory.cs
- ScriptManager.cs