‘<name>’ is ambiguous in the namespace

There are times where this error appears in our web application, without a specific reason.

'<name>' is ambiguous in the namespace '<namespace>'

This error has the following error code Error ID: BC30560.
[Continue reading]

Things around the web #1

This post gathers a few things I ran into the last few weeks and thought it would be fun to share it with you. [Continue reading]

Avoiding the ‘A potentially dangerous Request.Form value was detected’

This is a common error that ASP.NET developers have run into many times. We will see in this article a few ways on how to avoid it, both in Web Forms and MVC. … [Continue reading]

Getting video information from YouTube and Vimeo

YouTube and Vimeo provide a data API that you can use to get information for their videos. YouTube requires the use of an API key and you can get one for free. Click here to see the steps required to … [Continue reading]

Set mime types for web fonts in IIS

A typical @font-face declaration includes a .eot file, a .svg file, a .ttf file and a .woff file. If your IIS does not serve any of the previous file types, you need to set the appropriate mime type. … [Continue reading]

Centering images horizontally and vertically

In this article we will see how we can center an image to its parent element, regardless of its dimensions, with a small JavaScript plugin. The plugin re-sizes the image to fit to its parent … [Continue reading]

Export gridview or repeater to Excel

In a previous article I wrote how one could export a Datatable to an excel file. The provided function binded a DataGrid control to the Datatable and rendered it. The result was then flushed to the … [Continue reading]

Clearing HTML tags and MS Word tags from text

It's a pretty common need for web developers to get the plain text from HTML text. Also, there are cases where users paste text from MS Word. In this article I will post a few simple functions that … [Continue reading]