Also you could use partial classes to separate parts of code logically. It's very useful to wrap all input controls into properties. For instance, for every TextBox control I create string property and have a deal just with properties at the page but not with such statements like these:
Product product=new Product();
product.Name=tbxProductName.Text;
In my case it'll looks like:
product.Name=ProductName;
public string ProductName
{
get{return tbxProduct.Text;}
set{tbxProduct.Text=value;}
}
Please vote and Accept Answer if it Helped.