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;
///
/// Encapsulates an item within the control.
///
[
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;
///
/// Initializes a new instance of the with the specified item type and
/// location.
///
public RepeaterItem(int itemIndex, ListItemType itemType) {
this.itemIndex = itemIndex;
this.itemType = itemType;
}
///
/// Specifies the data item.
///
public virtual object DataItem {
get {
return dataItem;
}
set {
dataItem = value;
}
}
///
/// Indicates the ordinal index that specifies the item
/// location within the
/// .
///
public virtual int ItemIndex {
get {
return itemIndex;
}
}
///
/// Indicates the item type. This property is
/// read-only.
///
public virtual ListItemType ItemType {
get {
return itemType;
}
}
///
///
///
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;
///
/// Encapsulates an item within the control.
///
[
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;
///
/// Initializes a new instance of the with the specified item type and
/// location.
///
public RepeaterItem(int itemIndex, ListItemType itemType) {
this.itemIndex = itemIndex;
this.itemType = itemType;
}
///
/// Specifies the data item.
///
public virtual object DataItem {
get {
return dataItem;
}
set {
dataItem = value;
}
}
///
/// Indicates the ordinal index that specifies the item
/// location within the
/// .
///
public virtual int ItemIndex {
get {
return itemIndex;
}
}
///
/// Indicates the item type. This property is
/// read-only.
///
public virtual ListItemType ItemType {
get {
return itemType;
}
}
///
///
///
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
- ApplicationBuildProvider.cs
- DrawListViewItemEventArgs.cs
- XamlPoint3DCollectionSerializer.cs
- TTSEngineProxy.cs
- DataGridViewLinkCell.cs
- CompilerError.cs
- SchemaTypeEmitter.cs
- MethodExpr.cs
- FormViewInsertEventArgs.cs
- DoubleUtil.cs
- FakeModelPropertyImpl.cs
- ObjectSet.cs
- NamedObjectList.cs
- ExtendedPropertyCollection.cs
- ImageAutomationPeer.cs
- InputBinder.cs
- QilList.cs
- SafeNativeMethods.cs
- ServiceSecurityContext.cs
- InfiniteIntConverter.cs
- _BaseOverlappedAsyncResult.cs
- MarkupCompilePass1.cs
- ProcessHostServerConfig.cs
- BlockExpression.cs
- FrameworkObject.cs
- IPeerNeighbor.cs
- SupportsPreviewControlAttribute.cs
- LoginUtil.cs
- AlphabeticalEnumConverter.cs
- ActiveXMessageFormatter.cs
- FileSystemEventArgs.cs
- WebPart.cs
- QilInvokeLateBound.cs
- Relationship.cs
- TextRangeAdaptor.cs
- SequentialUshortCollection.cs
- DesignerActionHeaderItem.cs
- IntSecurity.cs
- COM2TypeInfoProcessor.cs
- CanonicalFontFamilyReference.cs
- DataGridViewCheckBoxCell.cs
- RequiredAttributeAttribute.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Transform.cs
- mediaclock.cs
- Guid.cs
- XPathConvert.cs
- NavigationProperty.cs
- DataBindingList.cs
- XmlCodeExporter.cs
- ConfigurationPropertyAttribute.cs
- KnownAssemblyEntry.cs
- dataobject.cs
- PageCodeDomTreeGenerator.cs
- MouseGesture.cs
- WebPartMenuStyle.cs
- EntityDataSourceEntitySetNameItem.cs
- TileBrush.cs
- CssClassPropertyAttribute.cs
- OdbcEnvironment.cs
- QuaternionAnimationBase.cs
- JavaScriptSerializer.cs
- ComplexPropertyEntry.cs
- SecurityTokenProvider.cs
- PropertyInformation.cs
- Message.cs
- SendActivityDesigner.cs
- HttpConfigurationContext.cs
- ToolStripTextBox.cs
- sqlstateclientmanager.cs
- XPathSingletonIterator.cs
- TraceHandlerErrorFormatter.cs
- PropertyMapper.cs
- XmlSchemaComplexType.cs
- SelectionPattern.cs
- ImageMap.cs
- TypeExtension.cs
- _ChunkParse.cs
- CanExecuteRoutedEventArgs.cs
- XmlUrlResolver.cs
- UInt16Converter.cs
- FactoryMaker.cs
- PrimaryKeyTypeConverter.cs
- PageThemeParser.cs
- UriParserTemplates.cs
- LiteralSubsegment.cs
- FrameworkPropertyMetadata.cs
- Compress.cs
- HGlobalSafeHandle.cs
- Point3DKeyFrameCollection.cs
- ZoneButton.cs
- ComNativeDescriptor.cs
- MasterPage.cs
- ChainedAsyncResult.cs
- IUnknownConstantAttribute.cs
- ResourceSetExpression.cs
- PrivateFontCollection.cs
- UiaCoreTypesApi.cs
- DbTransaction.cs
- MenuAutoFormat.cs