/// <summary> /// Check in. /// </summary> protected void btnCheckIn_Click(object sender, EventArgs e) { try { WebPartInfo wpi = WebPartInfoProvider.GetWebPartInfo(webPart.WebPartType); if (wpi != null) { WebPartLayoutInfo wpli = WebPartLayoutInfoProvider.GetWebPartLayoutInfo(wpi.WebPartName, LayoutCodeName); if (wpli != null) { SiteManagerFunctions.CheckInWebPartLayout(wpli.WebPartLayoutID); etaCode.ReadOnly = false; etaCode.Enabled = true; etaCSS.ReadOnly = false; etaCSS.Enabled = true; } } } catch (Exception ex) { this.lblError.Text = GetString("WebPartLayout.ErrorCheckin") + ": " + ex.Message; this.lblError.Visible = true; return; } SetCheckPanel(null); }
protected void btnCheckIn_Click(object sender, EventArgs e) { try { SiteManagerFunctions.CheckInWebPartLayout(layoutId); } catch (Exception ex) { lblError.Text = GetString("WebPartLayout.ErrorCheckin") + ": " + ex.Message; lblError.Visible = true; return; } URLHelper.Redirect(URLHelper.Url.AbsoluteUri); }