protected void btnRefresh_Click(object sender, EventArgs e) { CHelper.RequireDataBind(); string param = Request.Params.Get("__EVENTARGUMENT"); if (String.IsNullOrEmpty(param)) { return; } FormDocument FormDocumentData = (FormDocument)Session[param]; FormDocumentData.Save(); if (FormDocumentData.MetaUITypeId == FormController.GeneralViewFormType || FormDocumentData.MetaUITypeId == FormController.GeneralViewHistoryFormType) { MetaDataWrapper.AddClassAttribute(MetaDataWrapper.GetMetaClassByName(FormDocumentData.MetaClassName), "HasCompositePage", true); } }