protected void btnDeployPublication_Click(object sender, EventArgs e) { if (AutoUpdateManager.DeployPublication(PublicationID) == true) { if (String.IsNullOrEmpty(PackageName) == true) { Response.Redirect("EditPublication.aspx?target=" + PublicationID + "&publicationDeployed=1", true); } else { Response.Redirect("EditPackage.aspx?target=" + PackageName + "&publicationDeployed=1", true); } } else { if (String.IsNullOrEmpty(PackageName) == true) { Response.Redirect("EditPublication.aspx?target=" + PublicationID + "&publicationDeployFailed=1", true); } else { Response.Redirect("EditPackage.aspx?target=" + PackageName + "&publicationDeployFailed=1", true); } } }