SEO Paging in Datalist

Posted by Stanly under ASP.NET on 3/12/2010 | Views : 3293 | Status : [Member] | Replies : 6
Hi,
I want to implement paging like google in my Datalist. Paging link should be hyperlink not link button.

Regards,
Stanly



Responses

Posted by: Raja on: 3/12/2010 [Member] Starter

Up
0
Down
Use following link for your solution.

http://www.dotnetfunda.com/articles/article456-custom-seo-friendly-paging-with-aspnet-repeater-or-datalist-control-.aspx
http://www.dotnetfunda.com/articles/article122.aspx

Its easy.

Thank you

Regards,
Raja, USA

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

Posted by: Stanly on: 3/12/2010 [Member] Starter

Up
0
Down
http://www.dotnetfunda.com/articles/article456-custom-seo-friendly-paging-with-aspnet-repeater-or-datalist-control-.aspx

I've implement this one already... but if page no. increases.. its coming like this...
1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17....

i want only 10 page number should visble... also i want datalist and not listview

Regards,
Stanly

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

Posted by: Raja on: 3/12/2010 [Member] Starter

Up
0
Down
You will have to apply the logic if the number of pages are increasing to more than 10 then do not write the page number links.

The link you have provided talks about DataList only not the ListView.

Hope this helps.

Thank you.

Regards,
Raja, USA

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

Posted by: Stanly on: 3/12/2010 [Member] Starter

Up
0
Down
Don't mistake me... Can you guide me that logic?

Regards,
Stanly

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

Posted by: Abhi2434 on: 3/12/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
The easiest is to use asp:DataPager. Its great control for paging data.

See this :
http://www.packtpub.com/article/using-data-pager-control-in-visual-studio-2008

www.abhisheksur.com

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

Posted by: Stanly on: 3/23/2010 [Member] Starter

Up
0
Down
Any tell me the logic to show only ten page numbers...

Regards,
Stanly

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

Login to post response