如何使用ASP.Net 2.0(C#)来创建搜索引擎友好的页面(在Digg.com风格)? [英] How to create SEO friendly paging (in Digg.com style) using ASP.Net 2.0(C#)?

查看:245
本文介绍了如何使用ASP.Net 2.0(C#)来创建搜索引擎友好的页面(在Digg.com风格)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个digg.com风格分页我的ASP.Net 2.0(含C#)网站的使用本文GridView控件:的 http://kpumuk.info/asp-net/gridview-with-custom-digg-like-pager/

为了实现digg.com的风格,上述文章的作者已定制的GridView控件和创建使用两个派生的控件(GridView和链接按钮控制)命名为GridviewWithPager一个C#的控制,允许添加Digg的风格分页到应用程序。

不过,因为它使用的链接按钮控制和JavaScript本分页是不是搜索引擎友好。
我读的地方,对SEO分页超级链接应该用来代替链接按钮控制。
虽然JavaScript的每个人都知道,它使网页无法访问搜索引擎。

现在我想使这个digg.com式的分页搜索引擎友好的。

我想问的问题是:


  1. 这是真的,我应该删除链接按钮,控制和使用超链接控制链接在搜索引擎优化分页的页面?

  2. 我可以让这个digg.com式的分页搜索引擎友好的进行一些修改和添加?

  3. 如果是这样,那么我会需要什么样的修改和补充?

  4. 请我必须从我的网站删除此GridviewWithPager控制和使用默认的gridview的一些定制的搜索引擎友好的分页?

请随时给对SEO分页任何其他附加信息或建议。

任何帮助将是非常美联社preciated。
先谢谢了。

nzahra。


解决方案

  

这是真的,我应该删除
  链接按钮控制和使用超链接
  控制链接在搜索引擎优化的网页
  分页?


是的。切换到常规超链接将是必要的搜索引擎跟随链接。另外,你会得到一个较小的视图状态,它可以帮助搜索引擎优化,以及额外的好处。作为一个经验法则,文本内容到HTML的比例越高,效果越好。所以,如果你想让它在搜索引擎做好减轻视图状态的大小应该是一个优先事项。


  

我可以做这个digg.com风格
  分页SEO与一些友好
  修改和添加?


是的,虽然你可能会更好一些,从开始东西完全。容易,因为GridView的可以是与所有的使用内置功能,也有一些问题,其中,这使得它们在时间低效的。

在实际上,对于一个面向公众的网站,我会完全放弃GridView的,去老派。我会用最简单的数据控制 - 中继。您可以找到更丰富的功能,比如在其他地方,但这里的描述了如何简单分页应用到Repeater控件的文章:
http://www.vbasic.net/detail.aspx?tid=106

就像在这个例子中,我创建查询字符串分页。这样,你会得到搜索引擎优化的好处,以及当用户点击后退和放大器改善用户体验;在他们的浏览器前进按钮。不要去太远的切线,但有一点我最讨厌的就是确认重新提交表单对话框中,执行通过结果页面踩着简单的东西时尤其如此。使用查询字符串,而不是形式的岗位是一种方式来消除。

下面是你可能想效仿,尽管在不同的语言另一个例子:
http://www.seoegghead.com/blog /seo/stop-seo-death-by-pagination-p118.html

他有充分的理由这样做他的方式。您可能还注意到他使用URL重写,而不是查询字符串,需要多一点的工作。但是,如果你愿意付出努力,URL重写的结构性质可以使最终的搜索引擎优化。

I have created a digg.com style pagination for my ASP.Net 2.0 (with C#) website's gridview control using this article: http://kpumuk.info/asp-net/gridview-with-custom-digg-like-pager/

In order to achieve digg.com style, the author of the above mentioned article has customized gridview control and created a C# control named as GridviewWithPager using two derived controls (gridview and link button control), which allowed to add Digg-style pagination to an application.

But this pagination is not SEO friendly as it uses link button control and javascript. I have read somewhere that for SEO pagination hyperlink should be used instead of link button control. While for javascript everyone knows, it makes the pages inaccessible to search engine.

Now I want to make this digg.com style pagination SEO friendly.

The questions I want to ask are:

  1. Is this true that I should remove the link button control and use hyperlink control for linking the pages in SEO pagination?
  2. Can I make this digg.com style pagination SEO friendly with some modification and addition?
  3. If so, then what modifications and additions I will be required?
  4. Do I have to remove this GridviewWithPager Control from my website and use the default gridview with some customized SEO friendly pagination?

Please feel free to give any other additional information or suggestion on SEO pagination.

Any help will be really appreciated. Thanks in advance.

nzahra.

解决方案

Is this true that I should remove the link button control and use hyperlink control for linking the pages in SEO pagination?

Yes. Switching to regular hyperlinks will be necessary for search engines to follow the links. Plus you'll get the added benefit of a smaller viewstate, which can help SEO as well. As a rule of thumb, the higher the textual content-to-html ratio, the better. So reducing the size of the viewstate should be a priority if you want it to do well in the search engines.

Can I make this digg.com style pagination SEO friendly with some modification and addition?

Yes, although you may be better off starting from something else entirely. As easy as GridViews can be to use with all of the built-in functionality, there are some problems with them which makes them inefficient at times.

In actuality, for a public facing site I'd scrap GridViews entirely and go old-school. I'd use the simplest data control -- the repeater. You may be able to find a more feature-rich example somewhere else, but here's an article describing how to apply simple pagination to the repeater control: http://www.vbasic.net/detail.aspx?tid=106

Just like in this example, I'd create pagination with querystrings. That way you'll get the benefit of SEO, as well as an improved user experience when the user hits the back & forward buttons in their browser. Not to go too far off on a tangent, but one thing I hate is the "Confirm form resubmission" dialog box, especially when doing something as simple as stepping through pages of results. Using querystrings instead of form posts is one way to eliminate that.

Here's another example you might want to follow, albeit in a different language: http://www.seoegghead.com/blog/seo/stop-seo-death-by-pagination-p118.html

He has good reasons to do it the way he did. You may also notice he uses URL rewriting instead of querystrings which requires a little more work. But if you're willing to put in the effort, the structured nature of URL rewriting can make it the ultimate for SEO.

这篇关于如何使用ASP.Net 2.0(C#)来创建搜索引擎友好的页面(在Digg.com风格)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆