Hi.
I'm using the following to copy an Area
Dynamicweb.Content.Area A = Ase.Copy(Dynamicweb.Content.Area.CopyMode.StructureAndContent, false, true, true, true, false);
I'm then changing a few settings like domain, domainlock etc. And saving
A.Save();
All this from an ASHX file.
Now, the problem arises when trying to fetch the ASHX because the Area Save function outputs
<script>parent.updateStatus("Copying pages...");</script> <script>parent.updateStatus("Copying page 15 of 15 (100%)...");</script> <script>parent.updateStatus("Updating links...");</script> <script>parent.updateStatus("Copying content...");</script> <script>parent.updateStatus("Copying content: 15%...");</script> <script>parent.updateStatus("Updating global references...");</script> <script>parent.updateStatus("Done copying. Updating cache...");</script>
This means that my json response, which im outputting, is not formatted correctly, since its prepended to the output.
At the same time, the Area is actually not available before i log into my backend, select the website from the website list, and clicks "save" button. How can this be?
Im hoping for help
Thank you
Jonas