void btnReset_Click(object sender, EventArgs e) { if (ViewState[CMSViewStateManager.FeatureID] != null) { BeginEditMode(); } else { BeginAddMode(); } }