Posts

Showing posts from September, 2006

The trial period for this product has expired

I upgraded MOSS 2007 beta 2 to B2TR as per the MS doc but when I try to open the SharePoint central administration I got this message "The trial period for this product has expired". And you can use a workaround given by MS to solve this. And it's working for me......the official download link is http://download.microsoft.com/download/b/1/a/b1a6dceb-92a3-4808-8dac-b4e40c90ce00/StandaloneDCWorkaround.msi Thanks!

Copying Page From One Site to Another

Code Snippet that copies a page from one site to another : // Fetch event data RadTreeNode sourceNode = NodeEvent.SourceDragNode; RadTreeNode destNode = NodeEvent.DestDragNode; // Swap nodes in tree. if (sourceNode != destNode.Parent)// && sourceNode.Category == "PAGE" && destNode.Category != "PAGE") { SPSite DestSite = new SPSite(destNode.ID); SPWeb DestWeb = DestSite.OpenWeb(); SPSite SourceSite = new SPSite(sourceNode.Attributes["SPWEB"]); SPWeb SourceWeb = SourceSite.OpenWeb(); SourceWeb.AllowUnsafeUpdates = true; DestWeb.AllowUnsafeUpdates = true; SPFile spFileOriginal = SourceWeb.GetFile(sourceNode.ID); Byte[] binFileOriginal = spFileOriginal.OpenBinary(); string fileNameTarget = "CopyOf" + spFileOriginal.Name; SPFolder destPagesFolder = DestWeb.GetFolder("Pages"); if (destPagesFolder != null) { if (spFileOriginal.CheckOutStatus == SPFile.SPCheckOutStatus.None) { spFileOriginal.CheckOut(); } SPFile spDestFile = des