Tale of an ‘asp:Content control that do not correspond with asp:ContentPlaceHolder’ Master Page Error

If, like me, you are so unlucky to encounter the infamous: ‘The page has one or more <asp:Content> control that do not correspond with <asp:ContentPlaceHolder> control in master page.’ Figure 1 - The designer showing the master page


Css and JavaScript file minification

Performing the minification of your custom JavaScript and Css files is usually a good practice to follow when deploying your website in a production environment, but this usually makes doing ‘on the fly’ and ‘live’ modification to those files nearly


A very dirty trick to open a Popup after a PostBack operation

I’m not very proud of this cause it indicates a very poor interface design, but in a legacy project I’m working on we had the following scenario: 1- the user interact on some elements of the UI 2- the user clicks a button, at the PostBack ope...


ASP.NET - Tagging and Hiding the columns of a GridView

This is a simple trick that came into my mind working on a legacy ASP.NET application, the scenario is: we have a series of components that use a GridView to show some data, each GridView have several columns and according to the situation some...


ASP.NET Routing and DataBinding

On a project I’m currently working on the new ASP.NET Routing was used to realize a navigation system for the website but also to present the Urls in a way that is friendly to the search engines’ analysis tools in order to improve indexing a bi...