Tag Info

Hot answers tagged

3

Since you are trying to update item on ItemUpdated event you will get this error because another Update event was already in progress so you need to turn off EventFiring before calling SystemUpdate(). Example: SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPWeb web = properties.OpenWeb()) { var list = ...


2

Picture Library Schema contains fields ImageWidth and ImageHeight. You could get it in your receiver. For example: public override void ItemAdded(SPItemEventProperties properties) { if (properties.ListItem["ImageWidth"].ToString() == "300") { //your code here } } Fields ImageWidth and ImageHeight are filled only in ...


2

This page almost has it right: http://blog-sharepoint.blogspot.com/2009/12/where-is-sharepoint-webconfig.html However, for whatever reason it's saying you'll find several of the web.config files in the 60 folder when, as you suppose correctly, they should be in the 14 hive (is this SP2013? I haven't gotten to use it yet). I'm just going to note the ones in ...


2

Going to leave this up here for anyone that might come across it as I've just worked out what it is. Settings.aspx overrides the content placeholders that my nav control is in: PlaceHolderTopNavBar PlaceHolderHorizontalNav I've just simply brought the nav control outside of these placeholders and hidden the placeholders (settings.aspx will put the nav ...


1

Moving sites from SP 2007 to SP 2010 would require an upgrade of the content (content db). Plus both enviornments will need to be in sync before the migration can take place i.e. all the custom solutions will need to be deployed in SP 2010, all your custom site defs etc. This article shows how you can attach a content db from sp2007 to sp2010. ...


1

Combine two lists like in the answer on SE here, or use a tutorial by Melick Rajee Baranasooriya from nothingbutsharepoint.com. A tutorial on creating custom Timer Jobs can be found on MSDN. Sharepoint list-synchronization with Powershell can be found on Jesper Christensen's blog.


1

Basically you have to create a new list (the merge list) the all the items from the two lists and add to the merge list: $web = Get-SPWeb http://mysite $list = $web.Lists["firstList"] $merge = $web.Lists["mergeList"] $items = $list.GetItems() foreach ( $item in $item ) { # do job $newItem = $list.Items.Add() $newItem["Title"] = $item["Title"] ...



Only top voted, non community-wiki answers of a minimum length are eligible