C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Display Datalist Page Counting


Posted Date: 17 May 2008      Total Responses: 1

Posted By: suresh       Member Level: Silver     Points: 1


Frenz:
I have bind 15 records in Datalist and did paging (5 record per page).Now i want to display
current page's count from total number of pages.Ex:

In 15 records 5records per page means totaly 3 pages i want to display like this:

for 1st page 1/3, for second page 2/3....like wise.Can any one send me the code .....

Thanks:
suresh





Responses

Author: mohan    17 May 2008Member Level: SilverRating:     Points: 2
I think this code works for gridview. Code is as follows

Label1.Text = (GridView1.PageIndex+1).ToString() + "/" + GridView1.PageCount.ToString();

Code will be displayed in label.


Post Reply
You must Sign In to post a response.
Next : It s URGENT>>>>>>>>>>>>>>>>>>>>>
Previous : function using max,count in xml xpath
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



Read TATA Nano reviews.
dotNet Slackers   BizTalk Adaptors    Web Design   Scripts
Are you waiting for engineering entrance result? Watch here for engineering entrance results.
web conferencing

Contact Us    Privacy Policy    Terms Of Use