Questions tagged [development]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
617 views

Visual Studio 2010 Intellisense Breaks after Deploying to Sharepoint Site

I've ran in to this in two completely different environments now. I can build the solution and not have any problems with intellisense. If I deploy our Web Parts project to my local SharePoint 2010 ...
1 vote
2 answers
597 views

How do I convert a web part created in Visual Studio 2008 to Visual Studio 2010?

How to convert a web part project created in VS 2008 to VS 2010?
0 votes
2 answers
475 views

copy a file from site collection "Shared Document" to another web "target library"

Is there a way programatically copy a file from source to target dob lib? Source would be always static. target may vary.
2 votes
1 answer
3k views

Security Exception when attempting to Log

The following code results in a security exception in a custom web part I am developing. I want to log issues to the ULS but the web part crashes on this line. I have looked hi and low for the ...
0 votes
1 answer
1k views

SP2010 Set Site Search Settings through code

I would like to use code behind to set the search settings of my site: The Site Collection Search Center Url Site Collection Search Dropdown Mode: Show Scopes Dropdown Any ideas on how to implement ...
0 votes
1 answer
165 views

Issue with the Media Encoder Service in PKS for SharePoint 2007

It may not be directly related to SharePoint but wounder if someone could help me. I have configured a PKS on a new sharePoint 2007 environment however facing the below issue with the media encoder ...
1 vote
2 answers
7k views

How to have a column contain multiple users

I have a list with various columns. One of those columns is to store users. However, when I use the code configurationListFields.Add("Limit_Access_To", SPFieldType.User); I am only allowed to enter ...
6 votes
1 answer
1k views

Can't get OfficialFile.SubmitFile to work

I'm trying to write a literal SOAP call (I'm integrating from a remote non-windows machine) to submit a file which currently resides in the drop-off library of the site. I created a simple file, ...
5 votes
1 answer
763 views

Only show Sorting option not filtering opetion in contex menu of header in ListViewByQuery

I have creatd ListViewByQuery control through coding and added the control through RencerControl Event. I am filtering the list in code. so filtered result is shown. I want to hide filter context ...
2 votes
1 answer
1k views

How to get pagelayout without going through all of them?

I know the name of the layout page. Do I still have to go through this process to get the layout page? foreach (PageLayout pl in pageLayouts) { if (pl.Name.Equals("MyLayout.aspx", StringComparison....
1 vote
2 answers
143 views

Need guidance on SharePoint Environment Building

I just created a Virtual Machine on my laptop with Windows 2008 R2 Standard + SQLServer 2008 Standard + SharePoint 2010 Enterprise (everything on Single Box). I want to start my development of my ...
3 votes
1 answer
162 views

Designing a Licensing Scheme

Our startup is creating a product for the SharePoint platform. I'm wondering, what are some ideas for designing and implementing a licensing scheme for solutions that plug into SharePoint? How can ...
1 vote
2 answers
2k views

Custom SharePoint 2010 ribbon button based on Insert Link

I'm in the process of implementing a custom tab, group and button for the SharePoint 2010 ribbon. The button is to behave almost identically to the standard Editing Tools>Insert>Link button, except ...
3 votes
1 answer
2k views

Deploying a custom page under the Layout folder using a Feature

I have customized the "EditProfile.aspx" page and want to deploy it on the QA using a Feature, is it possible to deploy a page under the "_Layouts" folder using feature. Tried with the below Feature ...
6 votes
2 answers
2k views

How to modify the Site Settings page programmatically?

I need to modify the Site Settings page in a site collection to include an extra link. How can I go about doing this using c#?
1 vote
5 answers
1k views

How do I set up VS2010 and SP2010 for development?

We have an installation of SharePoint 2010 running for our intranet at the moment, and I have a copy of Visual Studio 2010 that I use for in-house application development. I'd like to start building ...
0 votes
1 answer
110 views

web part empty list [closed]

I am very new to sharepoint and specially sharepoint designer but somewhat experienced ASP.NET developer. I have a problem in SharePoint Designer 2007 that it does not show me any web part at all (...
3 votes
2 answers
1k views

Sharepoint 2010 MdalDialog title [duplicate]

Possible Duplicate: Sharepoint 2010 ModalDialog title Hi, I am creating a popup window in sharepoint using this code in javascript. function openAutoResizableDialog(title, url, CallResult) { ...
5 votes
2 answers
4k views

Sharepoint 2010 ModalDialog title

I am creating a popup window in sharepoint using this code in javascript. function openDialog(title, url, width, height, CallResult) { var options = { url: getUrl(url), title: title, ...
0 votes
1 answer
126 views

Strange issue with DVWP in sharepoint 2007

I have created a DVWP using sharepoint designer 2007, it renders fine. However, it throws "unable to display the webpart, troubleshoot with sharepoint designer" when I check-out and save the page ...
0 votes
1 answer
340 views

SP2010 Custom Workflow Design

I have to create a custom workflow on a document library for a group of users, and I'm having trouble figuring out how to go about creating it. The document library has the following extra columns: ...
17 votes
2 answers
36k views

Safest way to get a date from Sharepoint into a C# datetime field, using object model?

If I have a Sharepoint list item with a date field. How can I get the field value populated into a c# datetime object? For example: DateTime validfrom = Convert.ToDateTime(item["validfrom"]); ...
2 votes
3 answers
284 views

How Can I Display a Document Library in one Web App from another Web App - SharePoint 2007

I've got a customer request where a Document Library exists in a Site Collection on one Web Application and they would like to display the items in another Site Collection in a different Web ...
0 votes
2 answers
677 views

Automate exporting sites from production to development

I have an existing SharePoint 2010 site. I am going to start doing some development but want to take a copy of live onto dev so I can develop against that. Is there a way I can do it. If I could ...
0 votes
1 answer
329 views

How to access SPUserSolution properties from SPListItem

In my solution catalog I have many sandboxed solution uploaded, I need to access the activated sandboxed solution in the Solution catalog. Am accessing Solution catalog under a site as below ...
2 votes
1 answer
393 views

hide site action

Is there a way set the site actions drop down to be audience specific. Meaning that as the Owner of the site I want to be able to see it, but for other users (viewers, members, etc) I dont want them ...
1 vote
2 answers
611 views

UserNotFoundException with ActivityManager

Here is a weird situation. The site works with forms based authentication. I need to get the activity feed of the current user. As you know in FBA mode login names are prefixed with i:0#.f|...
7 votes
1 answer
601 views

Compressing Files in a Document Library with Server-side Code

Anyone know of a way, that within the context of server-side code (like in the callback of a WebPart) to compress a set of given files in a document library, placing the resulting compressed file back ...
1 vote
1 answer
2k views

How can I edit the workflow information page?

After my workflow starts, in one column of the record it shows my workflow status as a link (ex: In progress,complete). When I click this link it takes me to another page with the workflow history and ...
1 vote
1 answer
96 views

How to ignore the HTML components while retrieving the user profile data in sharepoint 2010?

I am using a powershell script to retrieve the user profile information (i.e., about me, skills...) $usp["sps-skills"].tostring() It is getting the required information however the data also ...
3 votes
1 answer
161 views

Can document views/metadata be 'live'?

We have a need for end users to see documents with additional 'live' columns, i.e. I would like to show a view of documents with employee id JOINED with data from sql server (for some additional ...
2 votes
1 answer
979 views

Automatically running SharePoint Designer Workflows when creating items via Object Model - few of the first items are "Failed on Start"

I have 3 On-Create SharePoint Designer Workflows which I'd like to run (automatically) when creating items by code, using a WCF service. At first, no workflows where created at all (the status column ...
2 votes
1 answer
373 views

SP 2010 Error handling validation controls

I was looking if it's possible to re-use the Sharepoint validation control used to check the URL name for special characters. I like to use this error validation in my custom application page to ...
2 votes
4 answers
1k views

Can I develop web parts just with WSS 3.0 and Visual Studio Express?

Can I get away with building and testing basic web parts just by installing Windows SharePoint Services 3.0 on a VPC with Visual Studio Express Editions?
2 votes
3 answers
3k views

Hiding WebParts programatically does not work

I am using the following code to hide all WebParts in a page. string siteUrl = "http://site"; SPSite site = new SPSite(siteUrl); SPWeb web; web = site.RootWeb; web.AllowUnsafeUpdates = true; ...
2 votes
2 answers
2k views

How do I test if I will be able to execute a query (does the site exist)

When I run a (CAML based query) executeQuery against Sharepoint, sometimes the site does not exist (it is created by a workflow process which may not have run). When this happens, I get a ...
4 votes
1 answer
996 views

Deploying custom page into the pages library using a feature in SharePoint 2007?

I have a custom page and want deploy it into the pages library of the site using a feature in SharePoint 2007. Whenever the activated the page should added into the pages library and should removed on ...
3 votes
3 answers
230 views

Developing a custom webpart to improve the page performance

I need a suggestion for a specific development requirement; it is just for a sub-site. The sub-site has a single list with 20 columns and 850+ items. Now, in the home page, I have to have there ...
1 vote
2 answers
1k views

Issues after an Application Pool Recycle

My site is setup to use SharePoint 2010's automated Application Pool Recycling. I have 2 front end web servers. Sometimes (not everytime) the application pool recycles, and a custom webpart starts ...
28 votes
3 answers
16k views

Find Document by GUID

I'm missing something that must be so simple that it's not even worth asking... but I have an object ID (GUID)... How do I figure out the document it points to? For example I have a GUID of 137DA01F-...
2 votes
1 answer
288 views

how to find the user profile property scope which user has set on his mysite - SharePoint 2010?

How can I find the list of colleagues/Team-members for a SharePoint 2010 user? and how can i find the scope for a specific user profile property (eg..birthday--->Everyone, Interest--->My Team)which ...
1 vote
1 answer
419 views

Sharepoint 2010 only displaying an item in the ribbon if using IE

I am using some JavaScript that can only be used in IE. Is there a way to hide my custom ribbon button if not in IE? Or only display it if it is IE.
3 votes
1 answer
226 views

Getting the path of a an item on using UrlAction and JavaScript

I have a custom ECB menu item. I want to get the path of the file that has been right clicked and alert it using JavaScript. Is this possible?
1 vote
2 answers
3k views

A button on an Infopath form that Prints the form and Submits it, too

OK I've been asked to put a print button on an infopath 2007 form. But they want me to amend the code so that the Click event submits the form to a Sharepoint 2007 Forms Library as well. I know this ...
3 votes
1 answer
993 views

Deploy an image in a feature

I am creating a feature which adds an option to the ECB. I want to have a custom icon/image. In my Visual Studio 2010 project I have created a TEMPLATE/IMAGES/proj folders. I have added my image to ...
1 vote
1 answer
737 views

Can I get the list of files for two or more directories?

My current query is below and works adequately enough. The sharepoint developer is creating a workflow that will look at files in the "Documents" folder, and if it certain flags are set, the ...
2 votes
3 answers
868 views

SharePoint project doesn't build on cc.net, but does build on developer workstations

I can build my code locally and on another developer's machine, but cc.net fails to build the project when I check in the code. I know that I experience a similar issue when I switch between .NET ...
1 vote
3 answers
245 views

CbQ webpart takes longer time to load, SQL slowness issue

I have custom page and it has a CbQ webpart alone, it actually performs a query against a single list which has only 800 items with 15 columns but it takes 8secs to load. I suspect a slowness in SQL, ...
22 votes
4 answers
431 views

Infrastructure knowledge for SharePoint developers

As a SharePoint developer I find that having a good understanding of the underlying infrastructure (such as Active Directory, DNS server, etc.) is very useful. I must say I'm not that good when it ...
3 votes
3 answers
909 views

Securing usernames and passwords for external SQL DB

We want to ensure that we are following best practice around connecting to a custom database. I'm not a developer as such so thought I would ask SharePoint Overflow :-). We have several SharePoint ...