In all my Page_Load() events I have to do a
if(!IsPostBack)
{
//code runs on initial get
//Set properties backed by viewstate
}
else
{
//Code runs on each get and post
//Set properties backed by ordinary fields
}
Is there any quick way to determine this short of reflector, reading documentation, or creating a test page?
Is it better to adopt a convention that viewstate doesn't really exist, because you don't know if it does without researching it on all of the potentially 1000s of properties you might need to set in a large line of business application?