Search This Blog

Sep 18, 2011

ASP.NET 4 - Code behind and Code Inline

When you create a file in VWD(Visual Web Developer) you also can select the way you will see the code in every file. There are two ways of look at the code and you have to define it when you create the file:
  • Code Behind: This is a page model where server side code is stored in a separate code file.
  • Inline Code: A page model where server side code is stored in the same file as the markup.

Be careful with your selection I prefer the Code Behind option, it is less confusing.

No comments:

Post a Comment