Monthly Archives: September 2010

SharePoint 2010 New Feautres

Today is 13th July and Microsoft announced about the 2010 technical Preview. This sneak pick displays only some limited features for their customers and partners the details for this you can find from Sharepoint Conference this October. 1. New GUI … Continue reading

Posted in General Interest | Leave a comment

SPFile in Sharepoint API

In Sharepoint API SPFile class procides us for working with Sharepoint list attachments. I want to explain SPFile class with some application. first console application working with MyTestListKK List attachments and display Attachment name and their file size; using (SPSite … Continue reading

Posted in General Interest | Leave a comment

Download Shared Document library Programatically

using (SPSite bjSite = new SPSite(“http://testsiteKK”)) { using (SPWeb objWeb = bjSite.OpenWeb()) { SPList objDoclibKK = objWeb.Lists[“DocumentsLibKK”]; foreach (SPListItem item in objDoclibKK.Items) { byte[] binFileKK = item.File.OpenBinary(); System.IO.FileStream fstream = System.IO.File.Create(“c:\\Temp\\” + Item.File.Name); fstream.Write(binFile, 0, binFile.Length); } } }

Posted in General Interest | Leave a comment

SP Best Prectices

1. First see the Difference between two? And then USE. web.Lists[“Demo”] and web.GetList(“http://localhost:90/Demo/AllItems.aspx”) In my case http://usctap3452/sites/sa/SubCategory/AllItems.aspx 🙂 web.Lists[ListName] method :In this case, it loads the metadata* of the all lists in that specific SPWeb object. Then it does SPList.Title … Continue reading

Posted in General Interest | Leave a comment