Delete a file from sharepoint Library

P

Priscilla

Hi

I am trying to delete document library. I found the folowing piece of code
deleting the file , this coding is working fine in the Security Level is
domain, but it didn't work form security option in full truested mode .

Code

try
{
// Create an xmlhttp object.
var oXmlHttp = new ActiveXObject("MSXML2.XMLHTTP");

// Check whether the document with the same name already exists on
SharePoint Team Services (STS).
oXmlHttp.Open("DELETE", strUrl, false)
oXmlHttp.Send();

}

catch (ex)
{
XDocument.UI.Alert("Cancel failed due to the following error.\n\n" +
ex.number + " - " + ex.description);
}

thanks

Priscilla
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top