asp.net mvc - strategy for including SEO information such as meta keywords and descriptions

前端 未结 5 1217
礼貌的吻别
礼貌的吻别 2020-12-23 09:56

I was wondering what, if there is one, is the best practice for including SEO content such as meta descriptions and keywords in an ASP.NET MVC (I\'m using v3 RC) view. My in

5条回答
  •  天命终不由人
    2020-12-23 10:55

    1) Do you foresee any problems with this approach?

    No.

    2) Are there any more suitable approaches?

    I would write a helper method for this or use a child action along with the Html.Action helper because you will be pulling data from the database.

    3) what is an appropriate data store to use here - should i pull from the DB (or cache if the data is available), use resource files, config files, etc?

    This will depend on what your site is doing, how it is organized, where is the information stored, ...

提交回复
热议问题