Le template de page pour les projet utilisant l'Asp.Net Mvc Framework possède une erreur. En effet, il est impossible d'accéder aux contrôles serveur depuis le code behind des pages aspx.
L'explication est simple. Les pages crées ne possède pas de fichier ".design.cs".
Pour résoudre ce problème il suffit convertir le site en application Web.
Cela entraînera la recréation des fichiers ".design.cs".
There is a bug in the file template when you create a new page - and the .designer.cs file isn't generated. To fix this, right click on the file and choose the "Convert to Web Application" menu item. This will generate the .designer.cs file that contains your control declarations. From that point on the code-behind will be kept up to date as you make changes.
Hope this helps,
Scott
Plus d'informations ici :
http://www.squaredroot.com/post/2007/12/MVC-Bug-Broken-Codebehind.aspx#Comment2e9c6968-9dc1-4d6d-b75b-60dc6335af1f