So you are putting together a web page using Microsoft’s ASP .net. You are looking through forums and examples for help and people keep talking about the code-behind.
What the hell is it? Well, in classic ASP (i.e older) the programming code was actually written into the same page as the HTML. This would make the pages unwieldy. Apparently some developers prefer to have all of their code in the same place but a better method might be to separate the visual presentation from the logical.
Enter code-behind. So basically if you simplify it; in ASP .net you have a file that is the web file. This is the file that holds the HTML and such. After all the server side processes have finished this file is sent to your browser.
The code-behind file sits on the server and is executed there, not on the client side. This keeps the two separate. The code-behind file is where you write your computer code such as VB or C#. It is kept hidden from the user so you do not have to worry about them seeing your code and possibly the inner workings of your system.