Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- MergeFailedEvent.cs
- ContractHandle.cs
- TextBounds.cs
- TranslateTransform.cs
- MdiWindowListItemConverter.cs
- RectangleHotSpot.cs
- Activation.cs
- MiniModule.cs
- Visual3D.cs
- AffineTransform3D.cs
- DesignerFrame.cs
- RuleRefElement.cs
- DbParameterCollectionHelper.cs
- TraceContextRecord.cs
- ClonableStack.cs
- VoiceObjectToken.cs
- AsynchronousChannel.cs
- AlternationConverter.cs
- dbdatarecord.cs
- Enum.cs
- CacheEntry.cs
- SoapEnumAttribute.cs
- COM2PropertyDescriptor.cs
- StorageMappingItemLoader.cs
- SqlRemoveConstantOrderBy.cs
- IntegrationExceptionEventArgs.cs
- EntityDataSourceDataSelection.cs
- ValueUtilsSmi.cs
- CriticalHandle.cs
- PassportAuthentication.cs
- MailMessage.cs
- InternalDispatchObject.cs
- SortableBindingList.cs
- Matrix.cs
- WorkerRequest.cs
- UncommonField.cs
- Frame.cs
- MenuItemBindingCollection.cs
- EntityDataSourceConfigureObjectContext.cs
- CommandManager.cs
- nulltextnavigator.cs
- UniqueIdentifierService.cs
- ScrollProperties.cs
- AdornerDecorator.cs
- DataControlFieldCollection.cs
- StringFormat.cs
- VisualBasicValue.cs
- CodeTypeConstructor.cs
- BitStack.cs
- UIElement3D.cs
- RequestSecurityTokenResponseCollection.cs
- RowCache.cs
- VisualTarget.cs
- WebBrowserContainer.cs
- Literal.cs
- SemaphoreSecurity.cs
- Color.cs
- SiteMembershipCondition.cs
- MailHeaderInfo.cs
- RuleSetBrowserDialog.cs
- ResourceDisplayNameAttribute.cs
- SrgsOneOf.cs
- WsdlBuildProvider.cs
- PtsPage.cs
- PhysicalAddress.cs
- TimeoutValidationAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TableItemPattern.cs
- XmlNodeList.cs
- PingReply.cs
- WindowsButton.cs
- UInt64Storage.cs
- MemoryMappedView.cs
- XmlUrlEditor.cs
- KeyedCollection.cs
- DocumentViewer.cs
- Quad.cs
- ViewKeyConstraint.cs
- FontFamilyValueSerializer.cs
- UIntPtr.cs
- PagerStyle.cs
- LoginUtil.cs
- TextElementCollection.cs
- ComponentConverter.cs
- DesignerCatalogPartChrome.cs
- NameValuePair.cs
- BufferModesCollection.cs
- DbConnectionHelper.cs
- BufferedGraphics.cs
- FieldNameLookup.cs
- TraceUtils.cs
- ListControl.cs
- AsyncCallback.cs
- TextElementEnumerator.cs
- AutomationPropertyInfo.cs
- WebServiceFault.cs
- GridViewCancelEditEventArgs.cs
- AmbiguousMatchException.cs
- DurationConverter.cs
- ResourceDictionaryCollection.cs