Archives
-
How to detect search engine crawlers?
Today I was looking for a solution how to detect when a client is a search engine crawler, you can create a fancy solution for this, but in the .NET framework their is already a solution to detect search engine crawler. The property Request.Browser.Crawler. If you use this property you always get false even if the site is visited by a search engine crawler, that's because it's not configured in a default installation of .NET.
ASP.NET uses the <browsercaps> section in machine.config or web.config to determine the client browser is a crawler or not. In the default installation the crawler filter information is all blank, that's why you'd always get false. To fix this problem, you should add the search engine crawler filters in the <browsercaps> and add this section to your web.config. Like this: -
New ASP.NET Charting Control
Microsoft has released a new cool charting control. It comes with documentations, samples and a lot of features, features like:
-
Parse QueryString with the HttpUtility
If you have a querystring from for example the Uri class (Uri.Query) and you want to parse it so you can get al the params and values, instead of doing al lot of string manipulation you can use a very handy utility class, the HttpUtility. The HttpUtility class has a method ParseQueryString, this method parse a query string into a namevaluecollection. Like this:
-
VS2008 SP1 Hotfix to Support for intellisense Doc Files
A few week I mentioned how to get intellisense for jQuery. Now the visual studio web tools team released a hotfix so the intellisense files will be found automatically if they have the same name as the orginal js file and the suffix "-vsdoc.js" more info can be found on the Visual Studio Web Tools team blog
-
Parse a html string with ASP.NET controls
Today I searched for a solution to parse a html string with ASP.NET controls on runtime. A string like for example this: -
Visual Studio Window Layout
Today I was playing around with my windows in Visual Studio to get them in place exactly how want it,, but how do I save my window layout settings? I found it on Sara Ford's weblog, simply close Visual Studio and the window layout will be saved.
When you mess-up your windows your can reset them by pressing "Window" -> "Reset Window Layout".