This really is a very quick tip...I think I got it from Fritz Onion's excellent Essential ASP.NET with Examples is C# (which I really recommend incidentally!). If you want to store a property which should persist using ViewState, you can save yourself a lot of typing and get (IMHO) cleaner code using this method:

public int Test
{
get
{
if(ViewState["Test"] != null)
return (int)ViewState["Test"];
else
return 0;
}
set
{
ViewState["Test"] = value;
}
}
So, there you go...short but hopefully useful - this is how I tend to work now...it also allows me to switch to session / cache persistence when necessary by just changing the little accessors...