title: ASP.NET databinding / getting variables from codebehind
body: <p>So I haven't used ASP.NET for three years or so and I'm really rusty on it. My old code isn't available to me for review (at an old company). This question should be pretty basic, but I can't find any good or reliable or not-super-old resources on the issue, so I'm asking here.</p>
  
  <p>Can I get a general overview of databinding again? I remember it being really useful for select boxes, etc., but I don't really remember how it works. Maybe a good ASP.NET tutorial in general, because I don't remember how it handles POST requests or anything like that really either. Should I just try ASP.NET MVC?</p>
  
  <p>Relatedly, suppose I have a public variable in my codebehind page. Right now I am accessing it by saying <code>Page.DataBind()</code> at the end of the page load function and then running <code>&lt;%# variable %&gt;</code> in the ASPX, but that's not how I remember doing it before and I reckon that it's not very good practice. What's the best way to display variables from codebehind?</p>