Tuesday, February 17, 2009

ASP.NET CodeBehind vs. CodeFile

I use Visual Studio 2008. Once and a while I get a .NET error that causes me to modify the @Page directive from CodeBehind to CodeFile, or visa-versa.

Folks tend to give all types of lengthy explanations on when to use one vs. the other. Here is a quick explanation...

.NET Web Sites ---> Use CodeFile
.NET Web Apps ---> Use CodeBehind

Done. Any questions?

No comments:

Can't RDP? How to enable / disable virtual machine firewall for Azure VM

Oh no!  I accidentally blocked the RDP port on an Azure virtual machine which resulted in not being able to log into the VM anymore.  I did ...