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

learn more… | top users | synonyms (3)

2
votes
2answers
34 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 ...
1
vote
1answer
276 views

How to programmatically access and manipulate Discussion item and replies?

How to access and manipulate Discussion item and replies? I have a discussion board that has a check box, based on the input I switch the permissions of that discussion post for a specific user (from ...
0
votes
1answer
20 views

How to check sharepoint list date column is empty?

How to check sharepoint list date column is empty? I want to check in back end code. IEnumerable<DataRow> x = from laptop in dtList.AsEnumerable() join ...
0
votes
1answer
270 views

Sharepoint modal popup don't shown when the Infopath form are on the site

I tried to add Infopath form on my project, but when I add the Infopath form some of PopUp which are corelated with Infopath and shows errors od data didn't shown What should I do to shown A Modal ...
1
vote
1answer
280 views

Check Home Page Sharepoint 2010

How to check page is homepage/default page programmatically in C# sharepoint 2010
0
votes
2answers
21 views

SPUtility Send Email for mulitple users

I am trying to send an email to multiple users using SP Utility Send Email I am using visual studio, c# But i am facing issue, as i am trying to specify email addresses as a ,b Should i be using ...
-1
votes
0answers
6 views

sharepoint and infopath issue

I want to get data from one of my sharepoint list to one of the field in my form. I have found the below code, please suggest me if it is good enough. GetSPListData() { //We need to get sharepoint ...
6
votes
4answers
14k views

Get Site Collection full URL using javascript

I want to get the URL for my site collection. One way I thought I could do it was using the window.location in javascript and getting it that way. I know that you can use ECMA script and the client ...
1
vote
1answer
481 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 = ...
4
votes
2answers
2k views

SPFolder vs SPListItem

I've trying to build a tree view which will show a Sites Lists and folders. This is an external application so I have to communicate with WSS3 through web services. Site |-List | |-Folder | ...
0
votes
2answers
306 views

How to find out the logged in user in workflow?

I have a sequential workflow in SharePoint 2013. I want to update a list item field with the name of the user who modified a specific workflow task. How can I get this done in c#?
0
votes
2answers
524 views

Remove Leading and Trailing Spaces from Rich Text Box using C# code

I am using a MultiLine Rich Text box in my custom list, now I want to remove leading and trailing spaces in the MultiLine Rich text box's input. I have written an List item event receiver with ...
0
votes
1answer
283 views

Problem with join two lists by linq

I wanna join two list and fill drop down list by specific column but i have error in join query note:c.user_id is lookup field my code lst.DataSource = (from c in dc.Complainant ...
0
votes
0answers
22 views

How to validate multiple fields with c# custom code on button click before submitting

My main goal here is to pop up a validation box that lists which fields have not been populated(still empty) before allowing the user to submit. I know you can use the method built into InfoPath but ...
7
votes
1answer
2k views

Programmatically add quick launch link to a modal dialog box

I have implemented a feature that once activated adds a heading called Home, and a link underneath to a NewForm.aspx like such: // Add Home node var mainListsNode = new SPNavigationNode("Home", ...
7
votes
1answer
663 views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist? Another solution would be to disable the ...
6
votes
4answers
17k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
6
votes
1answer
2k views

Attach a file to the list item

I attach a file to the list item when it is updating and when new item added. Additional condition when item updating - if the file already exists, remove it and replace the new one. I receive events ...
1
vote
2answers
85 views

Retrieve all site collections

I want to retrieve all site collections in an Online tenant through Visual Studio: I can do it via Powershell: get-sposite on-premise server : Get-SPSite on-premise again: var sites = ...
0
votes
1answer
647 views

Sharepoint 2013 Site Title only show parent site

I have a team site and am using the Site Title snippet, but I don't want that changing to show my subsite titles. For example here is an example team site hierarchy we are using for our companies ...
0
votes
1answer
345 views

Adding ListViewWebPart with CSOM

I have to add a few webparts to a default page using the Client side object model. For the most part this goes fine, I can add a XSLT and content query webparts. However, when i try to add a ...
4
votes
1answer
38 views

How to programmingly create a “Link to a Document” in an ASP.net web application?

I have a asp.net web application which requires to upload files to a SharePoint document library. I got that working. Now, I need to know how to code using C# in my web application to create a "Link ...
0
votes
1answer
577 views

Load properties of list item client object model c#

I have a situation where I need to load items from the list and which columns to be loaded cannot be hardocded, as it will be decided on user input. I have following code. ocamlQuery.ViewXml = ...
0
votes
1answer
1k views

Register a global.asax into a SharePoint Site

I'm trying add a .asax file into a SharePoint site. I've been following this tutorial. It's quite simple but I'm new to web programming, and I didn't understand where I must insert (and how) the ...
0
votes
2answers
38 views

Create a new site collection c#

I'm trying to create a new site collection in Sharepoint Online tenant with Visual Studio. 1) I found http://msdn.microsoft.com/en-us/library/office/ms448720(v=office.14).aspx which says that the ...
0
votes
1answer
723 views

Error: Unexpected response data from server - user Profile properties displays

I get the mentioned error message when i try to display the User Profile properties by using JSOM(Java Script Object Model) Error: Unexpected response data from server. The error occurs for around 1 ...
0
votes
1answer
18 views

Wrong hyperlink is generated for custom central administration action group image

I have a custom action group deployed to central administration; something like "Contoso IT" in this picture: The problem is that that for some reason, the hyperlink for "Contoso IT" (the title) is ...
6
votes
1answer
247 views

Programmatically set a WebPart title to a $Resources value

I need to programmatically add a web part to a page where the title is using a $Resources:Filename,Key; string. I know I can use SPUtility.GetLocalisedString() to retrieve the correct value (and loop ...
0
votes
1answer
470 views

GetitembyId in list

SPWeb web = SPContext.Current.Web; SPList list = web.Lists["MyList"]; SPListItem item = list.GetItemById(1); item["Title"] = TextBox_Name.Text; item["ProductNumber"] = TextBox_ProdNum.Text; ...
0
votes
1answer
20 views

What permissions are needed to develop apps on SPO 365?

I'm new with SPO365, but from what I read, to deploy and test apps I need a developer site (site collection), but I don't have access to create it, neither access to Central Admin. Does my developer ...
0
votes
1answer
23 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
0answers
5 views

Timer Thread Method not executing properly

I have a method that refreshes a grid view, I need to run this method on a page every 60 seconds. To do so I have implemented the following timer thread: var timer = new System.Threading.Timer( ...
0
votes
2answers
30 views

How retrieve custom fields only when using SPListItemCollection?

Hi with following code I am retrieving a DataTable from a List: using (SPSite site = new SPSite("http:...")) { using(SPWeb web = site.OpenWeb()) { ...
2
votes
1answer
294 views

making an SP.UI print dialog

I'm thinking of adding a print button to my list ribbon , the minute I click on this button a print dialog appears showing the list of the available printers on my computer. so this printdialog i was ...
0
votes
2answers
1k views

Error when using ItemAdded event handler to update columns on newly uploaded document

I have an ItemAdded event handler connected to a document library, in order to automatically populate certain fields when a new document is uploaded: public class AutoPopulateDocumentFields : ...
0
votes
1answer
388 views

SiteMapProvider for MySites' breadcrumb

My question is regarding the site map provider. I have a breadcrumb in the mysites and i use SPContentMapProvider to build the breadcrumb, but the problem is it always shows 'Home', so if im on my ...
0
votes
2answers
37 views

Linq get Distinct or first from multiple group

Ok, I'm not understanding something here with what I am attempting to query here. I have a list like the following. Title Subject Content Date ...
0
votes
0answers
8 views

Translate GUIDs to library, list, webpart, or component name

I have a list of GUIDs used but I don't have a reference to tell what each guid is for. Could I programmatically convert these Guids to something more useful such as Guid ==> "Document Library" ...
10
votes
4answers
9k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
1
vote
2answers
2k views

Trying to get user's manager: Getting SPServiceContext with SiteSubscriptionId of {00000000-0000-0000-0000-000000000000}

I am trying to get a user's manager with this code: SPSecurity.RunWithElevatedPriviliges(delegate { SPSite site = new SPSite(SPContext.Current.Site.Url); SPServiceContext context = ...
0
votes
1answer
26 views

Programmatically (C#) set date field to blank in 2010

I have tried setting my date field to an empty string ("") and setting it to "01/01/0001". Both returned the error "String is not formatted as date time". I have several thousand items across a few ...
0
votes
1answer
33 views

Developing Apps in Sharepoint

I want to learn how to develop apps for SharePoint. I created a new developer site collection. When I try to install NAPA I get the following message "Sorry this app is not supported on your server." ...
8
votes
2answers
112 views

How do I delimit Property bag values so search treats them as individual searchable words?

currently I'm using the property bag with values that are comma separated something like: web.AllProperties["fruits"] = "bananas, apples, oranges, tomatoes"; Currently search is treating them as one ...
0
votes
1answer
21 views

CAML query where date field is greater than another date field

Is it possible to write a CAML query that uses another field as the Value part of the filter? For example in SQL it would look like this: WHERE Field1 > Field2 This was by best guess but it is not ...
0
votes
1answer
32 views

color picker in custom webpart properties

I want to have custom color picker in web part properties to let users select colors for headings. Any idea how to achieve this.
0
votes
1answer
358 views

List Onload event

What I want to do: I have a custom list that contains a lot of items. When an user loads the list, all items of his view should be checked. If there is a special value in the listitem a notifiaction ...
2
votes
1answer
452 views

How to update metadata?

I have following code (didn't list the whole code) behind a button on a InfoPath Managed Form. and it works meaning I can submit data to a list. Now I have 2 controls on the form that is ...
1
vote
0answers
20 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...
1
vote
0answers
8 views

Does writing a custom RBS provider force one to put SharePoint into unsupported state?

It is well known that modifying a content database directly by running SQL queries results in an unsupported state. However, it is possible to develop custom RBS providers. Note that when an item is ...
0
votes
1answer
16 views

how to check if domain group has any kind of permissions to web after ensure

I am adding user to web, he might be added or might not be. I want to only give him permissions if he already doesnot have/has. How can i check. SPSite site = new SPSite(webUrl); ...