Listview Paging with background image

Posted by Ppathi under ASP.NET on 2/24/2012 | Points: 10 | Views : 1856 | Status : [Member] | Replies : 2
Hi,

Any one help i have used listview with numeric paging, i want to set background images for this. I want to differentiate on & off

Its very urgent

Thanks & Regards,
Pasupathi G
No Pain No Gain



Responses

Posted by: Sheonarayan on: 2/27/2012 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
I would say better to use Custom paging rather than using the ListView inbuilt paging mechanism. Custom paging is faster, simpler and flexible to implement and customize.

Have a look at this article http://www.dotnetfunda.com/articles/article456-custom-seo-friendly-paging-with-aspnet-repeater-or-datalist-control.aspx, despite it is for Repeater or DataList control, you can follow the same approach for the ListView. In the GetPagingDone method, add your CSS style (you can keep background image for this CSS) whatever you want for the selected and not selected page numbers.

Hope this helps.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Ppathi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ppathi on: 2/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi

Thanks got it

Thanks & Regards,
Pasupathi G
No Pain No Gain

Ppathi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response