protected void Display_ViewProductType() { _ProductType = new ProductType(m_refContentApi.RequestInformationRef); _ProductTypeData = _ProductType.GetItem(m_iID, true); _IsUsed = _ProductType.IsProductTypeUsed(m_iID); tr_id.Visible = true; txt_id.Text = _ProductTypeData.Id.ToString(); phAddEdit.Visible = false; phView.Visible = true; phTabAttributes.Visible = true; phTabMediaDefaults.Visible = true; txtTitle.Attributes.Add("onkeypress", "return " + JSLibrary.CheckKeyValueName+ "(event, \'34,13\');"); txtDescription.Attributes.Add("onkeypress", "return " + JSLibrary.CheckKeyValueName+ "(event, \'34,13\');"); XmlConfigData xml_config_data; xml_config_data = m_refContentApi.GetXmlConfiguration(m_iID); PopulatePropertiesGrid(xml_config_data, Convert.ToInt64(_ProductTypeData.EntryClass), _ProductTypeData.SubscriptionProvider); PopulateDisplayGrid(xml_config_data); if (xml_config_data.PackageDisplayXslt.Length > 0) { PopulatePreviewGrid(xml_config_data); phPreview.Visible = true; phTabPreview.Visible = true; } else { phTabPreview.Visible = false; phPreview.Visible = false; } Util_PopulateData(); Util_XSLTLinks(); Util_AddProductTypeItems(_ProductTypeData.EntryClass); Util_SetJs(); Util_SetLabels(); }