0
votes
1answer
29 views

Retrieve all lists and libraries Sharepoint Online

I'm trying to retrieve all lists from my online tenant from Visual Studio. After much fumbling and unsuccessful attempts with: ListItemCollection listItemCollection = oList.GetItems(query); and ...
2
votes
2answers
137 views

Unable to Delete Custom Master Page Programmatically During Feature Deactivation 2013

I currently have a custom master page that is being deployed at the Site scope. Once deployed and the feature is activated it makes the master page available for use. I am able to activate the ...
1
vote
2answers
80 views

Advance Search For Find Document with Column

I have a Document Library that contain large number document with four kind of content type. My Documents Contain specific column that inherit from content type. Now I need to design an advance search ...
0
votes
1answer
137 views

Can I deploy a sandboxed solution from Visual Studio to SharePoint online?

Apps are great for many things but hosting a service for a one-off customization of a host web seem a little overkill. I want to use a sandboxed solution for things like branding and data structure ...
0
votes
1answer
83 views

Add HTML elements programmatically

I think it is a very simple question, but I'm just stuck on it. I'm developing custom page for my SharePoint 2010 portal, and I need to add a button (or other elements) to my .aspx page: <input ...
0
votes
3answers
130 views

Collapsible asp.net control for SharePoint2010

I have a custom Instantiation form with a lot of CheckBoxes in SP2010. Now I've to put the CheckBoxes into different categories which should be collapsible, like you can see in the picture below. Is ...
2
votes
0answers
21 views

Filter and sort related data from multiple lists

I've been working on ways to collect data from a few lists, do some calculations on it and set up user controls to filter/sort that data. Ultimately I want a web part (or similar) that a user can use ...
0
votes
2answers
67 views

How to determine custom application page URL independently of the environment/farm?

I have deployed a custom ribbon button and when a user clicks it, I open a custom application page - I have deployed the page to _layouts mapped folder. To open the page (with JavaScript), so far I'm ...
0
votes
1answer
24 views

Can not adding Solution to Sharepoint

In visual studio I am getting below error while deploying my project to SharePoint site. ** Active Deployment Configuration: No Activation Run Pr-Deployment Command: Skipping deployment step ...
0
votes
1answer
47 views

Develop Sharepoint 2013 web parts from client using VS 2012

How I can develop my visual web parts from my client using VS 2012? When I want to create a sharepoint 2013 project I receive a message that sharepoint server does not installed on my client. Is ...
2
votes
5answers
1k 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 ...
1
vote
2answers
406 views

Updating 'Created By' field in SP2010 programatically

I'm trying to import data from an .xml file to a custom list in SP2010(created programmatically). I'm able to create and update all fields except 'Created By' as it says that "Cannot update read only ...
0
votes
1answer
308 views

Creating an Approval workflow based on the list values using visual studio 2010

I have a list with the company name, business process and workflow initiation. The Business Process could be Purchase Order/ Leave Request. Workflow Initiation is a radio button which could be ...
1
vote
1answer
576 views

Check box in gridview should update the splistitem check box

I am a newbie in visual studio. I have a Sharepoint list which contains the following fields group name, user, section and active(which is a check box) . I have a grid view visual web part which will ...
1
vote
1answer
53 views

How to edit web part from wsp solution

I have wsp files that contain some web parts that I need to change the functionality of. Without the actual solution or project files, using just the wsp, is it possible to edit them? I changed the ...
0
votes
1answer
86 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 ...
1
vote
2answers
71 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 ...
0
votes
1answer
74 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 ...
1
vote
1answer
825 views

SharePoint app get path of selected document

In a SharePoint app i have a custom action in a document library that navigates to an .aspx page. How do I get the full path of a selected document in that .aspx page? <CommandUIHandlers> ...
0
votes
1answer
277 views

Using custom SPRoleType

Environment: SP2010 Enterprise, VS2012, c# Server-Side, full control of environment I'm trying to assign unique permissions to an SPItem (a folder in a document library) through a console app on the ...
0
votes
1answer
834 views

Create a WebPart Page in Visual Studio 2010

I have a project that will have a few components: Lists, WebParts, WebPart Pages and an Application Page. I know how to create and deploy all of the above using Visual Studio 2010 to a SharePoint ...
0
votes
1answer
174 views

XSLT list view webpart is not displaying data after adding view dynamically

I am customizing xsltlist view webpart using c#. I am able to get the results properly till I give the view name to the code. As soon as I give it it's not rendering the data. It's only displaying the ...
0
votes
1answer
257 views

How to Programmatically load a SPList from an Generic List…?

After running the program... I check my site and only see city5. I also have a console app that undoes all below. The foreach loop only works for the last item. Tying to load all 5 cities... ...
0
votes
1answer
36 views

Sharepoint not Installed

Hello I'm trying to create a sharepoint 2010 project. I have Sharepoint as well as Visual studio 2012 installed on a VM, but when i go to create a new sharepoint project it tells me "Sharepoint not ...
0
votes
0answers
55 views

Error in adding post to a blog programmatically

I used linq to insert post into blog programmatically but when i clicked button error is appeared
0
votes
1answer
87 views

Best way to update 200 items on a list [closed]

Situation in a VS2010/SP2010 site: List A with main items List B with subitems, having a lookup column that points to List A ID There are about 200 subitems for each item The Page where users edit ...
0
votes
0answers
121 views

code of approval workflow in c#

I have a task to make approval workflow between three lists . When i add item to first list ,workflow should check second list and and assign tasks to specific people that on active directory(and they ...
0
votes
2answers
83 views

How to embed image in SharePoint Workflow Association Form?

I am developing a custom SharePoint workflow in Visual Studio. I have a custom association form (ASPX) and I'd like to display an image, which is embedded into the project (and subsequently wsp). ...
3
votes
2answers
525 views

What version of Visual Studio 2012 needed for SP Dev

I have been researching the different versions of VS2012 for use in developing in a SP2010 (Foundation) and possibly SP2013 environment. I asked two separate MS employees about which version of VS I ...
0
votes
1answer
263 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 ...
1
vote
1answer
1k views

Programmatically altering approval workflow task in separate workflow

Here is my code to programmatically alter the task at hand, the only problem is that the code doesn't alter the "Outcome" of the approval task. The Outcome field is blank. "Task Status" is Complete, ...
0
votes
3answers
1k views

Custom List Form Will Not Deploy

A demo List Form using Visual Studio 2010 to test and experiment with a few things. Nothing at all was added inside the project. Functionality, etc, will be added later, but at this point it was ...
1
vote
1answer
70 views

Creating Browser Enabled Form Without Using InfoPath

I'm relatively new and inexperienced with SharePoint 2010 development and I have a question that may sound a bit strange. I'd like to be able to create a Form Library that has entries opens into a ...
0
votes
2answers
73 views

When to use Release configuration in Visual Studio for SharePoint solutions?

The regular SharePoint solution development outputs mainly assemblies, which is deployed to GAC and used by other stuff (pages, webparts, controls, etc.). From googling I found that Release ...
2
votes
1answer
142 views

Using C++ dlls in event receiver

I am trying to use a legacy C++ dll that has around 5 C/C++ dependencies in SharePoint. I created a wrapper for the dll and it works fine in a test desktop program. I added the wrapper and all C++ ...
0
votes
1answer
43 views

need support/materials for developing external lists with visual studio 2010

Up to now, I have mostly used Sharepoint designer to develop external content types and lists. Due to the lack of source control and for other reasons, we would like to move the development process ...
0
votes
1answer
94 views

Blog Site in Anonymous Use in SharePoint 2010

Trying to setup anonymous access to a SharePoint 2010 blog following: http://www.sharepointblues.com/2010/12/22/blog-site-in-anonymous-use/ I am not sure what I am doing wrong but the source code is ...
2
votes
1answer
65 views

How to Retrieve the Data from an Individual Blog Post

I am trying to brand a blog post according to our standards, and to do that I have simply created a custom visual web part to take the place of the SharePoint default. What I am wondering is how am I ...
0
votes
2answers
111 views

get string from another method after setting it with SelectedIndexChanged event of asp-net dropdown

So I'm creating a contact form for my event management system at the moment. I've got a Visual Webpart including private string selectedEmail; as a variable after declaring my class in code ...
2
votes
2answers
504 views

SharePoint 2010 — Visual Studio Project Structure

What are your project structures for sharepoint projects. For example my simple structure is: Think of a project named MyPortal MyPortal.sln --MyPortal.Branding (Custom master pages, page layouts, ...
1
vote
1answer
2k views

InfoPath 2010, Sharepoint Liist Form and Custom code

I'm editing SharePoint 2010 list's Form in InfoPath 2010. Heard I can edit/add custom code via Visual Studio. Checked all buttons on ribbon but cannot find anything referencing to 'custom code' or ...
2
votes
1answer
607 views

Visual Web Part vs Visual Web Part (Sandboxed)

While I was creating a visual web part in Visual Studio 2010, I also saw an option to create Visual Web Part (Sandboxed) under Visual Studio Template Gallery. I need to know how does a Sandboxed ...
0
votes
1answer
27 views

Is it posible to create a EventReceiver for opening a site?

I want to start an EventReceiver when a site or a list opens. How can I do this? Is this possible?
0
votes
1answer
364 views

Visual Studio 2010 Workflow Error

I have created a simple workflow in VS 2010. What it does is creating a task for a person, when the person changes the task status to "Complete", it logs a message to workflow history. When I change ...
1
vote
1answer
45 views

Creating tasks simultaneously, freeze.

I am working with two workflows, both of them have been done in C# by using Visual Studio within SharePoint 2007 , the first one is activated when a document has been updated and copies the file into ...
1
vote
3answers
2k views

Where is the SharePoint 2013 SDK?

I want to try out SharePoint 2013 with Visual Studio 2012. I'm trying to locate the SharePoint 2013 SDK. Google points me to older posts about Beta SDK releases. Visual Studio 2012 only has ...
1
vote
2answers
1k views

How to programmatically create editable wiki pages within the Pages library of an Enterprise Wiki site

I'm new to SharePoint. I'm trying to programmatically create a wiki page within the Pages library of an Enterprise Wiki site in SharePoint 2010. Here is my code: using (SPSite site = new ...
6
votes
4answers
3k 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 ...
2
votes
5answers
1k views

How to detect where a memory leak is in my application?

I have a web part that loops through web apps, sites, and webs. I'm using DoesUserHavePermissions() to check whether or not the user has access to the site. I'm getting an error and I've made sure to ...
0
votes
1answer
602 views

How to create a new FBA user programatically using VS 2010?

I am looking to create a new FBA user (explicitly) in the membership db using the membershipuser create user programatically. The purpose is to test permissions using the spfarm account. What is ...