Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / ui / webcontrols / DataPagerFieldItem.cs / 1 / 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. [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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. //------------------------------------------------------------------------------ //// 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. [AspNetHostingPermission(System.Security.Permissions.SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(System.Security.Permissions.SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] 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
- RootProfilePropertySettingsCollection.cs
- DictionaryCustomTypeDescriptor.cs
- UserControl.cs
- documentsequencetextpointer.cs
- StateMachine.cs
- MessageHeader.cs
- ObjectHelper.cs
- ProviderBase.cs
- ArgumentOutOfRangeException.cs
- DataGridHeaderBorder.cs
- RewritingValidator.cs
- UrlEncodedParameterWriter.cs
- AppModelKnownContentFactory.cs
- StringAttributeCollection.cs
- GlyphTypeface.cs
- CheckBoxPopupAdapter.cs
- DispatchRuntime.cs
- FormatException.cs
- XmlNodeList.cs
- ServerIdentity.cs
- HTMLTagNameToTypeMapper.cs
- XamlReaderHelper.cs
- SourceInterpreter.cs
- XmlElementAttributes.cs
- SRef.cs
- XmlSchemaAppInfo.cs
- MenuItem.cs
- ControllableStoryboardAction.cs
- TypefaceCollection.cs
- ScriptResourceHandler.cs
- HwndSubclass.cs
- ClientUtils.cs
- ApplicationFileParser.cs
- ExportException.cs
- MetaModel.cs
- PasswordTextNavigator.cs
- XmlSiteMapProvider.cs
- PolicyManager.cs
- BitmapFrame.cs
- ParamArrayAttribute.cs
- UnmanagedHandle.cs
- DataColumnCollection.cs
- Table.cs
- TrustManagerMoreInformation.cs
- ProtocolsConfiguration.cs
- DocumentSchemaValidator.cs
- Size3D.cs
- PropertyMetadata.cs
- SortQuery.cs
- MorphHelper.cs
- MouseEvent.cs
- PagePropertiesChangingEventArgs.cs
- AsyncResult.cs
- UnsafeNativeMethodsPenimc.cs
- Message.cs
- CopyAction.cs
- MetadataPropertyAttribute.cs
- FileChangeNotifier.cs
- PageStatePersister.cs
- InfoCardBinaryReader.cs
- SendMessageChannelCache.cs
- FullTextState.cs
- GridViewColumnHeader.cs
- InplaceBitmapMetadataWriter.cs
- XmlJsonReader.cs
- UriParserTemplates.cs
- DataObjectMethodAttribute.cs
- HitTestWithGeometryDrawingContextWalker.cs
- XmlDocument.cs
- Parameter.cs
- TempFiles.cs
- QueryStringParameter.cs
- XmlUtil.cs
- DiscoveryClientRequestChannel.cs
- NameValueCollection.cs
- XamlTypeMapper.cs
- HtmlLink.cs
- ParallelTimeline.cs
- DockPattern.cs
- BooleanAnimationUsingKeyFrames.cs
- DataSourceCacheDurationConverter.cs
- DataTableExtensions.cs
- PageEventArgs.cs
- dataprotectionpermission.cs
- WorkflowApplicationEventArgs.cs
- ResourceReferenceExpression.cs
- validationstate.cs
- GPPOINTF.cs
- SchemaTableOptionalColumn.cs
- AsmxEndpointPickerExtension.cs
- SafeEventLogWriteHandle.cs
- WindowsSysHeader.cs
- HelpKeywordAttribute.cs
- TouchesCapturedWithinProperty.cs
- TextRunCache.cs
- SQLBoolean.cs
- DragDrop.cs
- SvcMapFileSerializer.cs
- ToolStripSeparatorRenderEventArgs.cs
- CachingHintValidation.cs