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
- DoubleConverter.cs
- SendMessageRecord.cs
- FormViewUpdatedEventArgs.cs
- ErrorInfoXmlDocument.cs
- Path.cs
- ServiceModelDictionary.cs
- EditingScope.cs
- HopperCache.cs
- XmlSchemaComplexContentRestriction.cs
- PropertyConverter.cs
- ManualResetEvent.cs
- SettingsPropertyCollection.cs
- EntityContainerRelationshipSet.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MediaElementAutomationPeer.cs
- ApplicationServicesHostFactory.cs
- TrackingStringDictionary.cs
- DecryptedHeader.cs
- CodePageEncoding.cs
- GraphicsPath.cs
- Tokenizer.cs
- Configuration.cs
- InputMethodStateTypeInfo.cs
- XmlSiteMapProvider.cs
- ConnectionManager.cs
- PrintPageEvent.cs
- TypeSource.cs
- ServicePointManager.cs
- WebDescriptionAttribute.cs
- Update.cs
- XmlSerializerNamespaces.cs
- Win32Exception.cs
- TdsParserStateObject.cs
- LogArchiveSnapshot.cs
- Helper.cs
- Base64Encoder.cs
- RecordBuilder.cs
- ZoneButton.cs
- XmlSchemaProviderAttribute.cs
- storepermission.cs
- UserControl.cs
- TypedDataSetSchemaImporterExtension.cs
- X509Utils.cs
- ObjectContextServiceProvider.cs
- Range.cs
- PreProcessInputEventArgs.cs
- _BaseOverlappedAsyncResult.cs
- GroupBoxAutomationPeer.cs
- XamlPoint3DCollectionSerializer.cs
- TextParentUndoUnit.cs
- SafeFileMapViewHandle.cs
- PositiveTimeSpanValidatorAttribute.cs
- GeometryModel3D.cs
- Viewport3DAutomationPeer.cs
- HitTestWithPointDrawingContextWalker.cs
- TitleStyle.cs
- VisualStyleTypesAndProperties.cs
- VirtualDirectoryMappingCollection.cs
- RawStylusInputReport.cs
- TimeoutValidationAttribute.cs
- DataSourceHelper.cs
- SqlNodeAnnotations.cs
- SecurityTokenAuthenticator.cs
- infer.cs
- DynamicControlParameter.cs
- WebPartMenu.cs
- OdbcDataAdapter.cs
- TextDecorationCollection.cs
- PaperSize.cs
- FormatterConverter.cs
- ListSortDescription.cs
- EmbeddedMailObject.cs
- PropertyDescriptorComparer.cs
- XmlNodeReader.cs
- ScriptComponentDescriptor.cs
- EDesignUtil.cs
- RowCache.cs
- ArraySortHelper.cs
- OutputCacheSettingsSection.cs
- SectionInformation.cs
- StateMachineExecutionState.cs
- ToolbarAUtomationPeer.cs
- OwnerDrawPropertyBag.cs
- webeventbuffer.cs
- EntityUtil.cs
- RawTextInputReport.cs
- ServicesExceptionNotHandledEventArgs.cs
- GenericAuthenticationEventArgs.cs
- InvokeWebService.cs
- BindUriHelper.cs
- HighContrastHelper.cs
- ZeroOpNode.cs
- TemplateBindingExtension.cs
- QueryResultOp.cs
- ACL.cs
- SqlVisitor.cs
- ConsoleKeyInfo.cs
- WebPartsPersonalization.cs
- TextEditorParagraphs.cs
- SafeRightsManagementHandle.cs