Thursday, May 15, 2008
CodeFile and CodeBehind
When developing web sites (no project file), Visual Studio adds the CodeFile attribute to associate the aspx page with the corresponding cs or vb file. Web application projects use the CodeBehind attribute instead. It's just one of those things to watch out for when migrating your ASP.NET web site project to an ASP.NET web application project.