RcBuilder@walla.com
call centre: 054-5614020

Is Search Engine Bot

Posted by: RcBuilder  /   Category: HttpContext / HttpRequest / List / Reference Types / Search Engines / SEO / SOURCE CODE / UserAgent   /   No Comments
16
Nov
2014

Is Search Engine Bot public static bool IsSearchEngineBot(System.Web.HttpContext context) { List<string> robots = new List<string>(); robots.Add("googlebot"); robots.Add("spider"); robots.Add("yahoo"); robots.Add("architext"); robots.Add("baidu"); robots.Add("msnbot"); robots.Add("scooter"); robots.Add("slurp"); robots.Add("teoma"); robots.Add("yandex"); try { string userAgent = context.Request.UserAgent.ToLower(); if(userAgent == string.Empty) return false; foreach (string robot in robots) if (userAgent.Contains(robot)) return true; return false; } catch { return false;.

Read more

render-blocks displayed not correctly

Posted by: RcBuilder  /   Category: BUGS / HTML / meta / Render Block / SEO / SOURCE CODE   /   No Comments
16
Nov
2014

render-blocks displayed not correctly Bug: render-blocks displayed not correctly example: public string PageDescription = string.Empty; public string PageKeywords = string.Empty; <head runat="server"> <meta name="keywords" content="<%=this.PageKeywords%>" /> <meta name="description" content="<%=this.PageDescription%>" /> </head> result: <head> <meta name="keywords" content="&lt;%=this.PageKeywords%>" /> <meta name="description" content="&lt;%=this.PageDescription%>" /> </head> fix: just remove the runat="server" from the head.

Read more
  • פיתוח מערכות
  • פתרונות טכנולוגים
  • קידום אתרים
  • בניית אתרים