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

learn more… | top users | synonyms (3)

5
votes
4answers
10k views

How can I get the root site collection from SPContext.Current?

With SPContext.Current I can get the current site or current web. However, I would like to get the root site collection for my current web application. I know that I can get the web application from ...
1
vote
2answers
1k views

SP GridView Filtering in share point 2010

I have sp grid view in my application page, I am binding some data to the sp grid vie, now I want to apply filtering for this grid. I am googling on this one since 2 days, I am unable to get the exact ...
0
votes
2answers
19 views

Efficiency of SQL updates/queries versus dealing with lists

I'm doing a lot of operations on very large custom lists, comparing them to SQL tables and updating items in the lists based on those tables. Currently this is a pretty slow process because it takes ...
2
votes
2answers
120 views

Create list from custom template using csom, c#

I would like to create a list based on a template (.stp uploaded to the list template gallery), it almost works with this code: ClientContext context = new ClientContext("<Your Site URL>"); ...
0
votes
0answers
14 views

SharePoint Trust Relationship Thumbprints in C#

I've been trying to find a way to get all of the certificates which are currently loaded into the SharePoint 2013 'Manage Trusts' section of Central Administration. I'd like a way to enumerate all of ...
1
vote
2answers
447 views

Remove Sharepoint RadioButtonChoiceField Focus on application page

I have an application page with a bunch of asp textbox controls and then a sharepoint RadioButtonChoiceField control. When the page loads it will always set focus to the RadioButtonChoiceField is ...
3
votes
1answer
158 views

Change masterpage from Seattle to Oslo using CSOM, Sharepoint online

Using CSOM and c#, I would like to change the master-page from Seattle to Oslo. Can anybody help me?
0
votes
1answer
24 views

Create Sharepoint group and assign permission, Sharepoint online

Using c# i would like to create a sharepoint online group and assign a permission to that group. According to this: http://msdn.microsoft.com/en-us/library/fp179912.aspx i am able to create roles, ...
1
vote
2answers
625 views

Retrieving attachments from SP List

I want to retrieve attachments from a sharepoint list. But don't really know how to, any suggestions? SOLVED: Check code under picture. public void MyData(string prod) { SPWeb web = ...
2
votes
1answer
2k views

Difference between Client Side API vs Server Side API

I am just going through this SharePoint 15 Training video and they are mentioning these terms again and again but am not sure with them though. MSDN Video talking about Sharepoint APIs I think the ...
0
votes
2answers
39 views

How can one learn the overall Sharepoint development ecosystem? [closed]

Since Sharepoint is such a huge platform with so many components and it can be used in so many different ways, I was wondering if there are good examples of sample projects which demonstrate how the ...
2
votes
2answers
30 views

Problem in batch processing data with angular bracket

Trying to insert some data into multiline of text SharePoint field using batch processing. It was working fine if it doesn't have any words within <> angular bracket. If it has any words inside the ...
0
votes
2answers
629 views

Batch operation fail for adding items in list

i wrote a simple batch operation to test if i can add items to list, but i always get error. string batchFormat = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><ows:Batch ...
0
votes
1answer
34 views

How do you tell if a site (SPWeb) was unsuccessfully provisioned programmatically?

I have an application that is running periodically using the task scheduler. The Application gets a list of projects from a database and checks to see if there is a corresponding sub-site in the ...
0
votes
0answers
25 views

SP 2007,Unable to cast COM object of type 'MSt.SharePoint.Library.SPRequestInternalClass' to interface type 'MS.SharePoint.Library.ISPRequest'

Unable to cast COM object of type 'Microsoft.SharePoint.Library.SPRequestInternalClass' to interface type 'Microsoft.SharePoint.Library.ISPRequest'. This operation failed because the QueryInterface ...
1
vote
2answers
550 views

Add quicklaunch link with querystring parameter programatically

I want to add some links to Quicklaunch bar. The link needs to have query string parameters, eg.: /sites/project/default.aspx?mode=filter string url = "/sites/project/default.aspx?mode=filter"; ...
0
votes
2answers
86 views

How to get groups and their roles/permissions on each individual subsite, without including groups from child elements (such as libraries)?

Using CSOM and C#, how can I get the groups that have permissions on a site along with their roles, given that I have the name of the subsite? Language might be a barrier here, and I tend to explain ...
2
votes
2answers
42 views

asp.net project and sharepoint project

I have a problem with asp.net project, I can't acces to my sharepoint site, I have a error message when I do : using (SPSite site = new SPSite("http://<SharePoint_Site_URL>")) So I'm asking ...
0
votes
0answers
18 views

Digitally Signing Forms using _Signature never valid

I have a problem with a SharePoint project in VS 2010. I try to sign an Infopath form from my SharePoint project (with C#) but when opening my signed form I've got a message box that says : One ...
0
votes
2answers
117 views

How to programmatically get all groups that have permissions on site?

I found this question and that person was asking how to get all the groups from a site, but instead he already has code that returns groups that have permissions on the site. And that is what I am ...
0
votes
2answers
30 views

How to detect when a new item version is added in an event receiver?

Is there a way to detect (in C#) if a new item version was added in either ItemAdded or ItemUpdated event? I would only like to execute some code when either new item is added, or a new version of the ...
1
vote
1answer
464 views

In a SharePoint List I cannot see items that are in a folder

I have a sharepoint list (Not Library), where I am programatically adding in a folder: SPList list = web.Lists[ListID]; SPFolder parent = list.RootFolder; SPFolder child = ...
0
votes
1answer
44 views

Unable to add .exe file to SharePoint 2010 using Client Object model after it has been removed from blocked files list

Language: C# Framework: .Net 4.5.1 Environment: SharePoint 2010 - Windows Server 2008 R2 My software is used to upload files to sharepoint. It works perfectly well for the majority of files. However, ...
1
vote
1answer
360 views

how to add multiple attachments to only one ListItem

This code creates a new listitem for every attachment but i only want to create 1 listitem and add all attachments to it SPList myEmployeeDocList = web.Lists.TryGetList("Document cv"); if ...
0
votes
1answer
34 views

Is a Standalone SharePoint 2010 Server Good Enough as a Test Environment for Production SharePoint Farm

I have inherited SharePoint 2010 at work and would like to test some features we are not utilizing. I would like a testing environment for SP but being limited on resources, I want to set this up on ...
-1
votes
1answer
33 views

Master Page Format Change

I am taking the plunge to change a master page format. I am wanting for the text to appear in the middle of the page with a frame around the text. Question. Does anyone know on how this can be done? ...
0
votes
1answer
34 views

Best approach to enforce loading of scripts

I've built a responsive SharePoint layout and although this is working in my main page, I'd now like to enforce this across the farm. I can see a few ways to do this (feature, edit masterpage) but ...
0
votes
1answer
51 views

Sharepoint Current user

I am using following code in masterpage to print current user welcome, <%= Microsoft.SharePoint.SPContext.Current.Web.CurrentUser.Name%> My output is as follows welcome, Smith, Rick ...
1
vote
1answer
31 views

How to embed SPList to a custom application page?

I have a custom central admin list and would like to insert it to a custom application page in a way that would make it look exactly like it does if you access the list via its URL - i.e. it should ...
2
votes
5answers
2k views

Problem connecting Visual Studio 2013 to SharePoint 2013

I'm having a big issue in connecting Visual Studio 2013 to SharePoint 2013. When I create a project in VS2013, I choose SharePoint Empty Project and then the URL of my SharePoint site, when I click on ...
0
votes
1answer
143 views

Do I have a future career as a SharePoint developer? [closed]

I'm a recent graduate with a BS in Business Administration/Management Information Systems. I've been working as an intern in corporate IT for a large company for the past year. I started with basic ...
0
votes
2answers
521 views

Open in a new window a document stored in SharePoint in C#

My problem is simple. From an aspx page, I need to open in a new window a document stored in Sharepoint. To access the document in SharePoint I need to provide credentials. To open the document in a ...
2
votes
2answers
424 views

Client Object Model don't work without “cookies”

Problem could be reproduced for all types of Client Model Object (Managed, JS, etc..) for example (Managed Client Model Object): using (var context = new ClientContext("http:\\WebApplicationURL")) { ...
0
votes
0answers
30 views

Copying list items's attachments

I have to modify a .Net console application written in C#. The application references the following assemblies : Microsoft.SharePoint Microsoft.SharePoint.Client Microsoft.SharePoint.Client.Runtime ...
3
votes
2answers
3k views

Adding description to sharepoint link URL using the C# CSOM

I'm currently adding the URL except the description is an ugly link. I would like to add the description to the URL in a links list on sharepoint online. My current code to add a new item from an ...
2
votes
1answer
162 views

How to add Calendar to every “My Sites” Globally?

I want everyone in my company have their personal calendar in their SharePoint "My Site". It means that I don't want to log in with everyone's credentials and go to their "my site" and add calendar ...
1
vote
1answer
62 views

Injecting dynamic list content into an alert template email

I have tried, and successfully failed, to determine a way to inject the emailed item's value from a universal custom column into the default alert emails generated by SharePoint, in both the subject ...
1
vote
1answer
1k views

Add various Fields in a Sharepoint List Programmatically

i need a method where add various Fields in a Sharepoint List, but these Fields must be in the parameter of this method. Show me this method and how should I use it.
0
votes
1answer
806 views

Set values in repeating table fields programmatically

I have some logic which calculated a list of dates that are to be displayed in the repeating table. The repeating table structure is as shown in the image: The code that I have used to set data in ...
1
vote
2answers
1k views

Workflows and SQL Server Databases

Is it possible to create a workflow that is started by activity in a SQL Server database that is outside of SharePoint? Using a WebPart to put and modify data in a database isn't a problem. ...
0
votes
0answers
12 views

Get IconURL from Microsoft.SharePoint.Client.File object [duplicate]

I am using Microsoft.SharePoint.Client.File object by iterating through a FileCollection. The problem is that this object does not contain the IconURL property. Due to certain reasons, I can not use ...
1
vote
2answers
219 views

Get selected value of dropdown choice list item

I'm trying to get the selected value of a dropdown list item. Nothing works. SPFieldChoice dropdown = list.Fields["Admin Guide"] as SPFieldChoice; var choices = dropdown.Choices; var selection = ...
0
votes
1answer
23 views

SPSite.AllWebs vs SPSite.OpenWeb

What are the benefits of using SPSite.AllWebs over SPSite.OpenWeb and vice versa when it comes to using-statements and/or checking if a SPWeb with a specific URL already exists?
0
votes
1answer
35 views

Microsoft SharePoint is not supported with version 4.0.30319.1 of the Microsoft .Net Runtime

I am developing a windows service in C# and adding dll for SharePoint. I have added reference from C:\Program Files\Common Files\Microsoft Shared\Web Server ...
0
votes
1answer
85 views

Determine if field exists in client-side object model?

I want to check to see if a field exists in my program, but If I use : if (item[_strContainingFieldName] != null) { item[_strContainingFieldName] = fieldValue; } I receive an error stating ...
1
vote
2answers
603 views

SharePoint 2013: How to get workflow status?

I need to be able to get the status of a SP 2013 workflow using C#. I've tried getting the WorkflowManager for the SPSite and calling the GetItemWorkflows, but I never get any results from that. The ...
0
votes
1answer
24 views

What user executes the code when running SPSecurity.RunWithElevatedPriveleges?

I have done research on this and still can't find a strong answer. Some soures say that when using SPSecurity.RunWithElevatedPriveleges that the code is executed as a site collection admin. Some ...
2
votes
1answer
91 views

Get ULS log records programatically

Is it possible to retrieve records from ULS log using C#/SharePoint API without having to manually parse log files? I would like to display logged messages on a custom web page, and I would like to ...
4
votes
2answers
1k views

SharePoint 2010 FBA: Redirect on Sign Out

I'm using the SharePoint 2010 FBA Pack http://sharepoint2010fba.codeplex.com/. Basically, I want to redirect to the homepage once a user Sign's out. I'm unable to find this. Could someone please help ...
0
votes
0answers
38 views

How can I change a list item's user permissions programmatically?

In my SharePoint list, there are different users in different list items. By using C#, I want to change the users' permissions to "Read", but I couldn't find an exact solution for this. If you can ...