Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. //------------------------------------------------------------------------------ //// 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebRequest.cs
- StrongNameIdentityPermission.cs
- ColorConvertedBitmapExtension.cs
- MorphHelper.cs
- TextReader.cs
- ElementMarkupObject.cs
- LocatorGroup.cs
- XmlSchemaFacet.cs
- SignatureSummaryDialog.cs
- MethodExpr.cs
- XmlSerializer.cs
- Exceptions.cs
- TransformGroup.cs
- HighContrastHelper.cs
- ParentUndoUnit.cs
- CodeExpressionStatement.cs
- EventProviderWriter.cs
- ObjectCloneHelper.cs
- SeverityFilter.cs
- DependencyObjectType.cs
- CollaborationHelperFunctions.cs
- HwndProxyElementProvider.cs
- GifBitmapEncoder.cs
- Misc.cs
- HtmlForm.cs
- BrowserDefinitionCollection.cs
- RolePrincipal.cs
- MetaModel.cs
- AutoResetEvent.cs
- SecurityHelper.cs
- AutoGeneratedField.cs
- EraserBehavior.cs
- Avt.cs
- XmlChildNodes.cs
- SafeRightsManagementEnvironmentHandle.cs
- GatewayDefinition.cs
- StyleCollectionEditor.cs
- ClientBuildManager.cs
- FindCriteriaApril2005.cs
- HashCryptoHandle.cs
- EntitySetDataBindingList.cs
- ArrayTypeMismatchException.cs
- Decorator.cs
- ComboBoxHelper.cs
- IntSecurity.cs
- PropertyOverridesTypeEditor.cs
- DynamicMethod.cs
- DefaultShape.cs
- MemberInfoSerializationHolder.cs
- SchemaMapping.cs
- BooleanSwitch.cs
- ContextBase.cs
- safex509handles.cs
- Mappings.cs
- WebServiceClientProxyGenerator.cs
- DataControlButton.cs
- DBSqlParserColumnCollection.cs
- UpnEndpointIdentityExtension.cs
- PenThread.cs
- CqlGenerator.cs
- PositiveTimeSpanValidator.cs
- GridProviderWrapper.cs
- ParseHttpDate.cs
- CodeChecksumPragma.cs
- URIFormatException.cs
- TypeConverter.cs
- Vector3DAnimationBase.cs
- ReaderWriterLockWrapper.cs
- GPPOINTF.cs
- ListControl.cs
- TableRowCollection.cs
- PartitionedStream.cs
- ServiceCredentialsSecurityTokenManager.cs
- CharacterBufferReference.cs
- SiteMapDataSource.cs
- PackUriHelper.cs
- CheckBoxList.cs
- FtpWebResponse.cs
- entitydatasourceentitysetnameconverter.cs
- __Error.cs
- SafeWaitHandle.cs
- _CookieModule.cs
- StreamBodyWriter.cs
- RoleServiceManager.cs
- XmlDataContract.cs
- AssociationSetEnd.cs
- IPPacketInformation.cs
- DocComment.cs
- X500Name.cs
- FileLogRecordStream.cs
- IPipelineRuntime.cs
- SendActivityDesigner.cs
- MethodCallExpression.cs
- AlphaSortedEnumConverter.cs
- UserUseLicenseDictionaryLoader.cs
- WebHeaderCollection.cs
- UnsafeCollabNativeMethods.cs
- ListViewHitTestInfo.cs
- TextBoxBaseDesigner.cs
- GridItemCollection.cs