Sir What is meant by PageIndex?
I am calling in page_Load like this:-
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Application["PageIndex"] = 0;
}
}
What function this does?
PageIndex in ASP.NET
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Iftikar HussainRank #423 · 5.9K reputationPosted Aug 28, 2013, 2:59 AM EDT
PageIndex is basically used for paging purpose.
When the paging feature is enabled (by setting the AllowPaging property to true), use the PageIndex property to determine the index of the currently displayed page. You can also use this property to programmatically change the displayed page.
Regards,
Iftikar
Scott LysleRank #49 · 31K reputationPosted Aug 28, 2013, 3:05 AM EDT
You may wish to review this: http://msdn.microsoft.com/en-us/library/ms178594(v=vs.100).aspx