The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.

learn more… | top users | synonyms (3)

0
votes
1answer
266 views

Set lookupfield value on document upload through event receiver

I have a custom list, where when I create a new item, I assign a custom id to that element through an event receiver. After the item is created, I create a file that I upload to a document library. ...
0
votes
1answer
96 views

wsp activation does nothing

I have created a site template, downloaded and imported my WSP into Visual Studio 2012, selected the needed lists and dependent columns. When I deploy to a new site collection from Visual Studio ...
0
votes
1answer
178 views

Set view order with code in a listview using ListViewXml.OrderBy

So I have this line: lvwp.ListViewXml.OrderBy.. - after this I have no Idea what to write? I would like to assign something like: Combining like this: lvwp.ListViewXml.OrderBy<FieldRef ...
0
votes
1answer
2k views

How to dynamically populate a dropdownlist in a gridview header row

I have a gridview which contains a dropdownlist in the header row to allow users to filter the data: <asp:GridView ID="GV_Projects" runat="server" AutoGenerateColumns="False" CssClass="mGrid" ...
0
votes
2answers
84 views

Sharepoint 2013 / VisualStudio 2008

We have installed a Sharepoint fondation 2013 and we are working with a VisualStudio 2008. Do you think it will be possible to develop some webparts with this configuration ?
1
vote
2answers
12k views

enableSessionState=“true” Done what more to do?

Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive. Please also make sure that System.Web.SessionStateModule or a custom ...
2
votes
1answer
1k views

Read connection string from Secure store service application

I have some application pages which connect to a DAL done in Entity Framework and connects to sql. However, the developers of this used property bags to store the username, db, password and dbname. ...
3
votes
1answer
132 views

Usage of RootWeb property instead of OpenWeb method

I am referring a SharePoint book and I found the following code snippet in an example in that book. using (SPSite mySiteCollection = new SPSite(mySiteUrl)) { using (SPWeb mySPSite = ...
6
votes
4answers
5k views

What SharePoint 2013 Development can be done in Visual Studio 2010?

It looks like the tools for developing SharePoint 2013 customizations are mostly in Visual Studio 2012 and "Napa for Office 365." If you've tried developing solutions for SharePoint 2013 in Visual ...
3
votes
2answers
835 views

SharePoint 2010 Save ListItem without closing

Is it possible to save a ListItem without closing the modal dialog in SharePoint 2010? Possibly by replacing the save button on the Ribbon with a custom button that calls the submit function and keeps ...
1
vote
2answers
344 views

SP2010 Foundation SPServices Jquery Cascaded dropdown

I'm new to SharePoint dev and i've implemented SPServices Cascaded dropdown using Jquery. I managed to get it to work in a subsite of the top level site collection, without problems. But the problem ...
0
votes
2answers
99 views

Trouble updating list using a custom query

Alright, this is driving me crazy. Ive been searching for a solution for several days but it just seems impossible. To see my updated list with the new query I have too click twice before the webpart ...
0
votes
2answers
3k views

SSIS Import Sharepoint 2010 List to SQL Server

Is there a way to do this via code? How so? I simply want to import data from a list in SharePoint 2010 to a SQL 2005 or 2008 server. I know there are several 3rd party plug-ins that work, but I ...
0
votes
1answer
491 views

“Invalid file name” error creating folder programmatically

I get the following error when trying to create a folder: Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have ...
1
vote
2answers
699 views

Convert an SPTimeZone to a TimeZoneInfo Object

I am working with the Exchange Managed API on SharePoint and in order to correctly get date/time information from the Exchange Managed API I need to pass it a TimeZoneInfo object when initializing the ...
0
votes
1answer
29 views

Deploying webpart on a single server

How can I deploy web part on a single server ? I have 5 front end servers in my farm and I have a solution file but i want to deploy web part to only 1 server I know i can add it using STSADM then ...
0
votes
1answer
104 views

SharePoint List add comments as formatted text

I'm not sure if this is even possible but thought someone must have done something similar. What I'm looking for is the ability for a user to enter a "comment" and that comment populate another field ...
0
votes
2answers
69 views

How to describe all content from the list in SQL

I must do Data Warehouse from my lists in Sharepoint. I need to connect to the Sharepoint and get all elements from the list and Show them in MS SQL Serwer 2008 R2. I need to show them in another ...
1
vote
1answer
456 views

How do I remove Skydrive and Newsfeed from the suite bar?

Using the following guide: http://blogs.msdn.com/b/findnavish/archive/2013/02/07/sharepoint-2013-customizing-suite-bar.aspx I've added some custom links to the suite bar, the main code from my control ...
0
votes
1answer
2k views

How do I programatically change the form template for an existing list

I've started creating all my SP lists in-code, because I find it to be way more reliable than using schemas. I can ensure lists on-the-fly, change existing fields during development, etc. And if ...
1
vote
2answers
267 views

AssociatedGroups collection of SPWeb?

I'm having a hard time understanding the purpose of adding an SPGroup to the AssociatedGroups collection (or its respective property bag item) of a site other than the group(s) appearing in the quick ...
0
votes
2answers
153 views

SPWeb.ProcessBatchData and checked out file

I'm using SPWeb.ProcessBatchData to update a bunch of items in an efficient way. However, when I try to update files that are in a folder that requires check out to edit, I get errors telling me the ...
2
votes
3answers
1k views

Deploying a webpart to multiple site collections?

Is it possible to Deploy a Webpart to multiple Site Collections, and not only to one?
7
votes
5answers
2k views

What is the difference between SPContext.Current.Web and SPContext.Current.Site.OpenWeb()?

My colleague found that some scenarios of working with SPWeb objects depend on how you obtain them. I'm not talking of impersonating with UserTokens - that another story. But at times when you write ...
0
votes
3answers
662 views

Finding all items in a list - slow performance?

I've created some code that identifies all of the site collections on a farm and then loops through all of the sites and lists within those collections . It's not ideal, but I've been tasked with it, ...
2
votes
1answer
390 views

Is there a way to only clear a specific item from the recycle bin?

I know I can empty the recycle bin for a site collection with the following: public static bool EmptyRecycleBin(string siteCollection) { try { using ...
1
vote
1answer
485 views

Custom digital signatures (or hash) on list items

I am working for a customer who needs to implement digital signatures (and I emphasize digital, not just electronic) on SharePoint list items. Due to the context of the project, I have the following ...
0
votes
1answer
120 views

How do I get a current content from URL field (or title field) in a workflow programmatically and convert to string?

I get a wrong value from field. private void onWorkflowActivated1_Invoked(object sender, ExternalDataEventArgs e) { SSPFieldUrlValue fieldValue = new ...
0
votes
0answers
32 views

Best practice for listing all files in a document library?

The Microsoft Best Practices for SharePoint guide recommends not enumerating entire SPList.Items collections or SPFolder.Files collections. I have the need to generate a list of all files in the ...
0
votes
1answer
103 views

Cross-Site Collection query/cache

i wonder of this is technically possible. We have 17000 sites. Some people might have workflows in some of these sites with tasks assigned to them. Lets say a normal user can have up to 20 workflows ...
0
votes
2answers
1k views

setting cookie in custom webpart

I have a webpart and I need to set a cookie and read write from/to this cookie. I tried to read the cookie using Request.Cookies["Cookiename"] and setting the cookie using ...
1
vote
2answers
1k views

Checking permissions of a user that is in an AD Group within a SharePoint Group

I've been mucking around with checking permissions to a site (SPWeb) for a bit and it seems there is no straightforward way to do this. The SPWeb.DoesUserHavePermissions doesn't seem to care about ...
1
vote
2answers
87 views

Best practice for taking SharePoint data and putting it into an SQL database?

I need to do some reporting across site collections. In order to do this I intend on writing a service layer that crawls SharePoint and puts information about document libraries and files into an SQL ...
1
vote
1answer
171 views

Displaying a users calendar from Outlook, in SharePoint

I'm wondering if this is possible? Could this be potentially done by writing a web part to go to Exchange?
0
votes
3answers
2k views

How to redirect to another page using an event receiver?

I want to redirect to another page after an item is added to the list. I have referred many links and found the same alternative that is SPUtility.Redirect("https://www.google.co.in/", ...
0
votes
1answer
1k views

Adding to a document library using FileUpload

I am having major woes trying to add a file to the document library. I have modified a console app to use a FileUpload control. The major issue is that the file is not added to the library. Then I ...
0
votes
1answer
80 views

NullReferenceException from SPService.Delete()

I have a sharepoint service that inherits from SPDiagnosticsServiceBase. When I deactivate the feature, I have the following code: public override void ...
1
vote
3answers
781 views

Uploading xml to document library won't start workflow

When I upload an xml document to a document library, the workflow associated with that document library won't start. Here is my the code I use to upload: using (SPSite site = new ...
1
vote
1answer
65 views

SPWebCollection.WebsInfo.Description - always null

I am trying to get Description value from each SPWeb's SPWebInfo object: DataTable _websinfo = new DataTable("WebsInfo"); _websinfo.Columns.Add("Title"); _websinfo.Columns.Add("Url"); ...
0
votes
2answers
3k views

How to check if list item exists using item URL

At the moment I am trying to delete list item file using this code, SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite site = new ...
0
votes
0answers
119 views

Copy document to another library after populating quick parts

Using a server-side solution, I am generating document and populating its metadata based on the content type. So far so good. The document gets generated and when opened, shows up all the fields which ...
2
votes
0answers
80 views

Cross Browser Local File Viewer in Content Editor Web Part

Is there a way to use the content editor web part (in SharePoint 2010 standard edition) to view files on a network (given an absolute path using and iframe) that will work in IE, FireFox, Chrome, ...
0
votes
2answers
496 views

Get SPUser object

I am trying this code to get SPUser object but it keeps throwing exception of user not found even when it returns true for DoesUserHavePermissions(..., does anyone know any fix or way around ? if ...
0
votes
1answer
260 views

“Could not load file or assembly” error when trying to call an external assembly, although it is in GAC and in the project package

I have been working on an empty SharePoint 2010 project in Visual Studio 2010 and everything works as it should until I try to call a certain external assembly - adding a reference to the assembly ...
0
votes
2answers
186 views

Prevent the `PublishingPageContent` value filtering when programmatically updating the field

If I save the html: <a href="tel:1-800-222-3334"> (800) ABC - DEFG </a> in the PublishingPageContent field it gets filtered down to: <a> (800) ABC - DEFG </a> How can I ...
1
vote
1answer
131 views

How to add field programmatically to list (without adding it to CT)

I'm adding here a field to the list, but it adds itself to a default content type, how can I add it to library but not to CT? SPFieldBoolean flagField = ...
0
votes
2answers
564 views

Generating the Word Document with SharePoint list data

I have an issue with exporting the list data from sharepoint to microsoft word (docx). Basically, the export succeeds, I can move the data from the list to the word document using xml (XElement etc) ...
0
votes
1answer
40 views

Is there any programmatic way to determine if a list has any relationships to other lists?

If list A has a SPFieldLookup to list B is there any thing in list B's SPList object to show the relationship with list A? While I can flip through list A's fields and find the relationship to List B ...
1
vote
1answer
340 views

How to programmatically add a custom html url to the Workflow Task's description column?

How can I update the description column of a workflow task in SharePoint 2013 using c# that will contain a html link that has to open in a new window. Any suggestions?
1
vote
2answers
306 views

Advice on starting development for SharePoint in C#

I'm about to start development of client-side application (C# using .NET 4.0) that connects to SharePoint. Mainly to download/upload documents. I've found out that there are several options: using ...