Browse by Tags
All Tags »
Sharepoint 2007 »
WSS V3
Sorry, but there are no more tags available to filter with.
public static SPFile UploadListTemplate(string siteUrl, string templatePath) { using (SPSite site = new SPSite(siteUrl)) { SPDocumentLibrary templates = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType. ListTemplateCatalog); System.IO.FileInfo fileInfo
Read More...
public static SPFile UploadWebTemplate(string siteUrl, string templatePath) { using (SPSite site = new SPSite(siteUrl)) { SPDocumentLibrary templates = (SPDocumentLibrary)site.GetCatalog(SPListTemplateType.WebTemplateCatalog); System.IO.FileInfo fileInfo
Read More...
Creating a discussion in discussion list is different from creating a simple list item. The code for creating a discussion item is: using (SPSite site = new SPSite("SITE URL")) { using (SPWeb web = site.OpenWeb()) { SPList list =web.Lists["LIST TITLE"];
Read More...
Only today that I've found that the WSS object model has 2 classes that hold all the IDs of the built-in ContentTypes and Fields. Instead of doing things like this: SPListItem item = list.Items.Add(); item["Title"] = "bla la bla";
Read More...
I was checking for a field value change in a WSS V3 list with the help of event handlers with no success. In the ItemUpdating event, the list item has the current values of the item and the AfterProperties has the values that the item will have after
Read More...