Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / WebControls / DataPagerFieldItem.cs / 1305376 / DataPagerFieldItem.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
using System;
using System.Collections;
using System.Diagnostics.CodeAnalysis;
using System.Web;
using System.Web.UI;
namespace System.Web.UI.WebControls {
// This class implements INonBindingContainer to allow binding statements on TemplatePagerField
// to look like Container.TotalRowCount rather than Container.Pager.TotalRowCount.
public class DataPagerFieldItem : Control, INonBindingContainer {
private DataPagerField _field;
private DataPager _pager;
public DataPagerFieldItem(DataPagerField field, DataPager pager) {
_field = field;
_pager = pager;
}
public DataPager Pager {
get {
return _pager;
}
}
public DataPagerField PagerField {
get {
return _field;
}
}
[SuppressMessage("Microsoft.Security", "CA2109:ReviewVisibleEventHandlers", MessageId = "1#")]
protected override bool OnBubbleEvent(object source, EventArgs e) {
if (e is CommandEventArgs) {
DataPagerFieldCommandEventArgs args = new DataPagerFieldCommandEventArgs(this, source, (CommandEventArgs)e);
RaiseBubbleEvent(this, args);
return true;
}
return false;
}
}
}
// 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
- EndpointAddressMessageFilterTable.cs
- SimpleMailWebEventProvider.cs
- RequestCache.cs
- UserPreferenceChangingEventArgs.cs
- QilCloneVisitor.cs
- PtsCache.cs
- WorkerRequest.cs
- PictureBoxDesigner.cs
- PersonalizationStateInfo.cs
- SoundPlayer.cs
- ReferentialConstraint.cs
- SqlDataSourceEnumerator.cs
- ProviderConnectionPointCollection.cs
- IdSpace.cs
- NullRuntimeConfig.cs
- DataControlFieldHeaderCell.cs
- WriterOutput.cs
- DrawingCollection.cs
- PrintPreviewDialog.cs
- Viewport3DAutomationPeer.cs
- RegexWorker.cs
- OAVariantLib.cs
- NameGenerator.cs
- MdiWindowListItemConverter.cs
- PanelStyle.cs
- ToolBarDesigner.cs
- CompletionProxy.cs
- LinkArea.cs
- IDictionary.cs
- PathGradientBrush.cs
- ObjectPersistData.cs
- DefaultTextStoreTextComposition.cs
- _NTAuthentication.cs
- FormViewModeEventArgs.cs
- SequenceFullException.cs
- TdsParserStaticMethods.cs
- AutoResizedEvent.cs
- LabelEditEvent.cs
- CryptoApi.cs
- PreservationFileReader.cs
- UnicodeEncoding.cs
- ProcessHost.cs
- DrawingContext.cs
- AnnotationHighlightLayer.cs
- StylusPointPropertyId.cs
- ClientSession.cs
- LogManagementAsyncResult.cs
- TransformerTypeCollection.cs
- BaseHashHelper.cs
- IISUnsafeMethods.cs
- TemplatedMailWebEventProvider.cs
- CharConverter.cs
- OperationContext.cs
- WebSysDefaultValueAttribute.cs
- SetterBaseCollection.cs
- QueryCacheKey.cs
- RestHandler.cs
- PropertyGeneratedEventArgs.cs
- COM2FontConverter.cs
- ContourSegment.cs
- CTreeGenerator.cs
- SapiRecognizer.cs
- MbpInfo.cs
- PKCS1MaskGenerationMethod.cs
- TableLayoutCellPaintEventArgs.cs
- LoginName.cs
- BrushValueSerializer.cs
- DataTablePropertyDescriptor.cs
- TextRangeProviderWrapper.cs
- TextServicesCompartmentContext.cs
- QuestionEventArgs.cs
- LocalClientSecuritySettings.cs
- TypeContext.cs
- BitmapCodecInfo.cs
- ControlBindingsCollection.cs
- PolyLineSegment.cs
- SafeFileMapViewHandle.cs
- HostingPreferredMapPath.cs
- PointAnimation.cs
- HtmlTableCellCollection.cs
- DataSourceGeneratorException.cs
- ExpressionList.cs
- Viewport2DVisual3D.cs
- DescendentsWalkerBase.cs
- HttpDictionary.cs
- MobileControlsSectionHandler.cs
- DbModificationCommandTree.cs
- TextSelection.cs
- FixedTextPointer.cs
- ConfigurationFileMap.cs
- XmlSerializationGeneratedCode.cs
- TaskScheduler.cs
- EdmScalarPropertyAttribute.cs
- InputLanguageSource.cs
- WebEventTraceProvider.cs
- ContextConfiguration.cs
- AvTraceFormat.cs
- newinstructionaction.cs
- ObjectAnimationUsingKeyFrames.cs
- StronglyTypedResourceBuilder.cs