Code snippet: Copy list data between sites programmatically

        private void button1_Click(object sender, EventArgs e)         {             MoveData();         }         private void MoveData()         {             string siteURL = "http://terminator:4400";             string fromList = "list1";             string toList = "list2";             string viewname = "{29F43EBD-2A32-443A-9419-D6C77585EAAA}"; // list2’s allitems view GUID             string documentPath = @"C:\check.pdf";             string websrv = "http://terminator:4400/_vti_bin/Lists.asmx"; //…

0

How To: MOSS: Work with RunWithElevatedPrivileges

BEHAVIOR/SYMPTOMS: ==================== if the code is not set inside RnWithElevatedPrivileges then you may get following errors Error: The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. Troubleshoot issues with Windows SharePoint Services. ESOLUTION/WORKAROUND: ==================== please refer the article mentioned below and follow…

0

How To: Add/remove the action from EditControlBlock(ECB)

1.    Make a copy of the LAYOUTS folder from “…\12\TEMPLATE\” . 2.    From IIS, make your site collection point to your custom LAYOUTS folder. 3.    Now you can look for CORE.JS into your custom LAYOUTS folder . CORE.JS 4.    For “Edit in Microsoft Office InfoPath” link, search for “L_EditIn_Text” and comment out the code for…

0

How To: Steps to create web services in MOSS 2007

I followed the article http://msdn2.microsoft.com/en-us/library/ms464040.aspx but still I had to do couple of more settings which I have covered here. A. Creating an ASP.NET Web Service in Visual Studio Create a web service project. Add class library project to the Solution(ref. System.Web.Services). Move the service.cs file to class library project. (Please note the Class name…

0