Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / xsp / System / Web / UI / WebControls / GridViewPageEventArgs.cs / 1 / GridViewPageEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Provides data for
/// the
/// event.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class GridViewPageEventArgs : CancelEventArgs {
private int _newPageIndex;
///
/// Initializes a new instance of the class.
///
public GridViewPageEventArgs(int newPageIndex) {
this._newPageIndex = newPageIndex;
}
///
/// Gets the index of the first new page to be displayed in the .
/// This property is read-only.
///
public int NewPageIndex {
get {
return _newPageIndex;
}
set {
if (value < 0) {
throw new ArgumentOutOfRangeException("value");
}
_newPageIndex = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web.UI.WebControls {
using System;
using System.ComponentModel;
using System.Security.Permissions;
///
/// Provides data for
/// the
/// event.
///
[AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)]
[AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)]
public class GridViewPageEventArgs : CancelEventArgs {
private int _newPageIndex;
///
/// Initializes a new instance of the class.
///
public GridViewPageEventArgs(int newPageIndex) {
this._newPageIndex = newPageIndex;
}
///
/// Gets the index of the first new page to be displayed in the .
/// This property is read-only.
///
public int NewPageIndex {
get {
return _newPageIndex;
}
set {
if (value < 0) {
throw new ArgumentOutOfRangeException("value");
}
_newPageIndex = value;
}
}
}
}
// 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
- Membership.cs
- ArgumentNullException.cs
- ProgramPublisher.cs
- GeneratedCodeAttribute.cs
- Verify.cs
- D3DImage.cs
- ManualResetEvent.cs
- AuthStoreRoleProvider.cs
- MimeImporter.cs
- HttpResponseInternalWrapper.cs
- FacetDescriptionElement.cs
- ReceiveActivity.cs
- TickBar.cs
- MdImport.cs
- XamlPointCollectionSerializer.cs
- Serializer.cs
- XmlSchema.cs
- QuaternionAnimation.cs
- Control.cs
- UnicodeEncoding.cs
- FlagsAttribute.cs
- HttpListenerElement.cs
- NullableDoubleSumAggregationOperator.cs
- TypeNameConverter.cs
- ReferenceEqualityComparer.cs
- RuleSet.cs
- autovalidator.cs
- HttpContextBase.cs
- ContentIterators.cs
- DetailsViewDeleteEventArgs.cs
- XmlCharCheckingWriter.cs
- MessageQueueConverter.cs
- QilChoice.cs
- ComboBox.cs
- ObjectHandle.cs
- TextEditorLists.cs
- WorkflowPersistenceService.cs
- ContentDisposition.cs
- SinglePageViewer.cs
- PixelFormat.cs
- Common.cs
- MemberJoinTreeNode.cs
- SourceFileBuildProvider.cs
- TreeIterator.cs
- WindowsHyperlink.cs
- XMLDiffLoader.cs
- Brush.cs
- ObjectListCommandCollection.cs
- SoapAttributes.cs
- SQLByte.cs
- SafeIUnknown.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- XmlDataImplementation.cs
- FileNotFoundException.cs
- SerializationHelper.cs
- AnnotationAdorner.cs
- ChildTable.cs
- MenuItemStyleCollection.cs
- Win32PrintDialog.cs
- CompiledRegexRunnerFactory.cs
- RuleSetDialog.Designer.cs
- ComplexBindingPropertiesAttribute.cs
- ProcessStartInfo.cs
- XpsS0ValidatingLoader.cs
- RootBrowserWindowProxy.cs
- PropertyEntry.cs
- XamlSerializerUtil.cs
- EditorPartChrome.cs
- ReceiveCompletedEventArgs.cs
- DataGridView.cs
- ActivitySurrogateSelector.cs
- HtmlSelect.cs
- AutomationEventArgs.cs
- HtmlElement.cs
- _HeaderInfoTable.cs
- HttpListenerContext.cs
- Soap.cs
- ConnectionStringsExpressionBuilder.cs
- RealProxy.cs
- ConnectionPoolRegistry.cs
- CollectionChangedEventManager.cs
- AutoGeneratedField.cs
- PerspectiveCamera.cs
- Parsers.cs
- versioninfo.cs
- RemoteCryptoTokenProvider.cs
- RequestQueryProcessor.cs
- DoubleKeyFrameCollection.cs
- DragEventArgs.cs
- ThreadAttributes.cs
- SecurityTokenRequirement.cs
- CallSiteOps.cs
- AppSettingsExpressionBuilder.cs
- RtfControls.cs
- UIElementCollection.cs
- SecurityVersion.cs
- MenuAdapter.cs
- LinqDataSourceDeleteEventArgs.cs
- GlyphRunDrawing.cs
- KeyboardEventArgs.cs