protected void Page_Load(object sender, EventArgs e) { string culture = RequiredCulture; newCultureVersion.RequiresDialog = RequiresDialog; newCultureVersion.Tree = Tree; newCultureVersion.NodeID = NodeID; newCultureVersion.Node = Node; newCultureVersion.Mode = Mode; newCultureVersion.RequiredCulture = culture; // Register progress script ScriptHelper.RegisterLoader(Page); // Check if the culture is valid bool isCultureAllowed = CheckPreferredCulture(culture); if (!isCultureAllowed) { ShowWarning(GetString("licensevalidation.newdocumentcultureversion")); newCultureVersion.Visible = false; return; } if (NodeID > 0) { // Fill in the existing culture versions TreeNode node = Tree.SelectSingleNode(NodeID, TreeProvider.ALL_CULTURES); if (node != null) { EnsureProductBreadcrumbs(PageBreadcrumbs, GetString("content.newcultureversiontitle"), !node.IsProduct(), true, false); } else { RedirectToInformation("editeddocument.notexists"); } } else { RedirectToInformation("editeddocument.notexists"); } }