New Members FAQ
Talk to Webmaster Tony John
Specified argument was out of range
29 Jun 2012
i am using list view. In data pager i have written _PreRender event. under it i have written code as
protected void Pagerindex_PreRender(object sender, EventArgs e)
int CurrentPage = 0;
Int32.TryParse(Request.QueryString["page"], out CurrentPage);
CurrentPage = CurrentPage.Equals(0) ? 1 : CurrentPage;
Button PreviousLink = Pagerindex.Controls.Controls as Button;
Button NextLink = Pagerindex.Controls.Controls as Button;
if (PreviousLink != null)
PreviousLink.Visible = false;
else if (CurrentPage > 1)
PreviousLink.Visible = true;
if (NextLink != null)
if ((CurrentPage * Pagerindex.PageSize) >= Pagerindex.TotalRowCount)
NextLink.Visible = false;
NextLink.Visible = true;
i am gettin error at
Button PreviousLink=Pagerindex.Controls.Controls as Button;
Mohan M Devarinti
Date: 29/Jun/2012 Rating:
we can't get the control ids which are generated by the datapager I think so....
So, if do you wanna set the current pageindex, you can do like:
DataPagerProducts.SetPageProperties(CurrentPage * DataPagerProducts.PageSize, DataPagerProducts.PageSize, true);
This thread is locked for new responses. Please post your comments and questions as a
If required, refer to the URL of this page in your
Cannot able to access AsyncFileUpload??/showing error below??
How catch results of stored procedure in asp.net page
Return to Discussion Forum
Post New Message
no of click on advertisement in asp.net application
Please Please help.................. tooo urgent
Please tell me .Net interview Questions for 2+ Years Exp
To upload Documents like(doc,pdf,etc) to file system
Follow us on Twitter:
Last 7 Days
Asheej T K
Awards & Gifts
Articles Rss Feeds
Forum Rss Feeds
Revenue Sharing sites
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.