Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HijriCalendar.cs
- ClickablePoint.cs
- ControlLocalizer.cs
- StandardBindingElement.cs
- MenuItem.cs
- TransactionScope.cs
- AttributeAction.cs
- DataPagerCommandEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- Expr.cs
- CompiledAction.cs
- Vector3DKeyFrameCollection.cs
- RoleService.cs
- ImageCreator.cs
- NonParentingControl.cs
- TextBlockAutomationPeer.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- xsdvalidator.cs
- Control.cs
- BindingOperations.cs
- MailWebEventProvider.cs
- SoapTypeAttribute.cs
- UIElementParaClient.cs
- XmlSchemaFacet.cs
- TrustManager.cs
- ThreadLocal.cs
- WindowsPrincipal.cs
- WebEvents.cs
- Subtree.cs
- KerberosSecurityTokenAuthenticator.cs
- ListDictionary.cs
- ChooseAction.cs
- RootBrowserWindow.cs
- ClientBuildManagerCallback.cs
- EarlyBoundInfo.cs
- ManipulationDelta.cs
- VisualTreeHelper.cs
- UrlPath.cs
- ReceiveContext.cs
- ContainerUtilities.cs
- X509CertificateCollection.cs
- ToolStripPanelCell.cs
- Popup.cs
- XmlILStorageConverter.cs
- EdmFunction.cs
- ProcessThreadCollection.cs
- DbSetClause.cs
- VisualTreeFlattener.cs
- WasEndpointConfigContainer.cs
- QueryStringParameter.cs
- ToolStripPanelRow.cs
- HoistedLocals.cs
- HttpResponse.cs
- TcpWorkerProcess.cs
- CodeThrowExceptionStatement.cs
- InputMethod.cs
- ItemMap.cs
- SynchronizedRandom.cs
- WindowsServiceElement.cs
- TaskFileService.cs
- CompareValidator.cs
- DataSourceXmlElementAttribute.cs
- PropertyChange.cs
- OleDbDataAdapter.cs
- ListBoxItemWrapperAutomationPeer.cs
- TableHeaderCell.cs
- GeneralTransform.cs
- AxisAngleRotation3D.cs
- Transactions.cs
- FormViewDeleteEventArgs.cs
- XmlParserContext.cs
- UIAgentAsyncParams.cs
- XmlDocumentType.cs
- DisplayNameAttribute.cs
- TypeDescriptionProvider.cs
- XamlWriter.cs
- Geometry3D.cs
- PersonalizationDictionary.cs
- SizeKeyFrameCollection.cs
- DCSafeHandle.cs
- ByteStack.cs
- JournalEntry.cs
- EntityStoreSchemaFilterEntry.cs
- PublisherMembershipCondition.cs
- DataListCommandEventArgs.cs
- ObjectStateManagerMetadata.cs
- ConsoleTraceListener.cs
- PropertyConverter.cs
- serverconfig.cs
- QueryAsyncResult.cs
- WindowsGraphics2.cs
- BaseTemplateBuildProvider.cs
- DocumentSchemaValidator.cs
- SamlAssertion.cs
- DictionaryEntry.cs
- Object.cs
- DiscriminatorMap.cs
- IPGlobalProperties.cs
- TextSpanModifier.cs