asp.net.ph

FormViewPageEventArgs Constructor

System.Web.UI.WebControls Namespace   FormViewPageEventArgs Class


.NET Framework version 2.0

Initializes a new instance of the FormViewPageEventArgs class.

[ VB ]
Public Sub New ( _
   ByVal commandSource As Object, _
   ByVal newPageIndex As Integer _
)

[ C# ]
public FormViewPageEventArgs (
   object commandSource,
   int newPageIndex
);

[ C++ ]
public: FormViewPageEventArgs (
   Object* commandSource,
   int newPageIndex
);

[ JScript ]
public function FormViewPageEventArgs (
   commandSource : Object,
   newPageIndex : int
);

Parameters

commandSource
The source of the command.
newPageIndex
The index of the page selected by the user from the page selection element of the FormView control.

Remarks

Use this constructor to initialize a new instance of the FormViewPageEventArgs class.

When an instance of FormViewCommandEventArgs is created by a call to this constructor, the following properties are initialized to the specified values.

Properties Initial Value
CommandSource The commandSource parameter.
NewPageIndex The newPageIndex parameter.

Example

The following example demonstrates how to initialize a new instance of the FormViewPageEventArgs class.

void myPageChangedHandler ( Object src, FormViewPageEventArgs e ) {
   FormViewPageEventArgs args = new FormViewPageEventArgs (
      e.CommandSource, e.NewPageIndex );
}
  C# VB

See Also

FormViewPageEventArgs Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph