. . . code continues . . .
// MCMS PAPI
using Microsoft.ContentManagement.Publishing;
namespace CmsExplorer
{
/// <summary>
/// Summary description for CopyPosting.
/// </summary>
public class CopyPosting : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox txtDestination;
protected System.Web.UI.WebControls.Label lblErrorMessage;
protected System.Web.UI.WebControls.Button btnCopy;
protected System.Web.UI.WebControls.Literal litCurrentPosting;
private void Page_Load(object sender, System.EventArgs e)
{
// display the path of the posting to be copied
Posting posting = CmsHttpContext.Current.Searches.GetByGuid(
Request.QueryString["CMSObjectGuid"]) as Posting;
if (posting != null)
litCurrentPosting.Text = posting.Path;
else
lblErrorMessage.Text = "Requested posting does not exist.";
}
. . . code continues . . .