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