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

learn more… | top users | synonyms (3)

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 ...
3
votes
2answers
518 views

Regex Query Against FAST Search 2010

I'm looking for a way to do searches with FAST Search Server 2010 based on Regular Expressions. For instance, I'd like to be able to use: ^\d{3}-\d{2}-\d{4}$ And have it return any content ...
3
votes
1answer
5k views

How to get the current site url in sharepoint

How to get the current site url in sharepoint, I am using SPContext.Current.Site.Url but this returns package site url, if i create a new site in existing site and activate my feature in it, and call ...
3
votes
3answers
802 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 ...
2
votes
1answer
462 views

Programmatically trigger “New document” action in a document library

I've been asked to check if it is possible to trigger the creation of a new document linked to a content type. Like, to make it simple, you have a webpart, a button, you click it, and it opens the ...
2
votes
3answers
1k views

Simultaneous development environment for SP2010 and SP2013 in single OS

I have on my laptop a development environment as win7 with std IIS, SharePoint 2010 Server, SQL 2008 R2 and Visual Studio 2010. I already installed Visual Studio 2012 side by side. But what about ...
2
votes
1answer
299 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 ...
2
votes
1answer
2k views

Set multiple values to Enterprise Keywords TaxonomyField

I want to programmatically set the values of the Enterprise Keywords Managed Metadata field. This field supports multiple values, but I can only get it to take one at a time. I have the following ...
2
votes
4answers
2k views

CAML query to find a value that does not begin with

I want to build a CAML query to search for all title fields that do NOT begin with a certain value: something like this: Where Title NOT BeginsWith 'myvalue'. How can i do that in my CAML query?
2
votes
1answer
2k views

Why can't I update an SPView query?

I'm trying to update a SPView query, it doesn't give any error but it also doesn't update the property (SPView.Query). In SPManager 2007 it works with the resulting query of that code. Can you spot ...
1
vote
2answers
150 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 = ...
1
vote
2answers
518 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 ...
1
vote
1answer
623 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
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 ...
1
vote
1answer
81 views

Content DB not getting any permissions on web application created through central admin

I tried to create a Web Application using Central Admin. It created web app without displaying any error, I can browse site too after creating site collection and that, but content db got no ...
1
vote
2answers
2k views

How to get user tasks from My Site task list?

I'm working on a solution in SharePoint 2013. It's a Web Part that is going to display the five tasks that are due next from the task list on the current users' My Site. I'm new to SharePoint and kind ...
1
vote
1answer
149 views

InfoPath, and Calling a instation of Template InfoPath from Event Receiver

I want to call a form of InfoPath from Event Receiver. How Could I set a field infopath a Values, from Event Receivers to sets a Values on infopath fields which could I Validate and show or hide a ...
1
vote
1answer
364 views

CAML how tu change Query to get a Range from Date Start, to Date End

I have got a list with the specyfic column Nazwisko | DataPoc | DataKon | I'm made a procedure like You told me, but debbuger told me that it's not coming to the loop for. string ...
1
vote
1answer
846 views

Rating's not being saved

Initially, I thought there was a problem with a control I've made to rate a document when I found that no documents appeared to be rated. So last night I rated documents (approved and published) ...
1
vote
2answers
481 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 ...
1
vote
3answers
2k views

Redirect from ItemAdded event

I am using an ItemAdded event handler for doing some validation. If my validation fail is it possible to redirect the user to another page. Ideally it would be good to show the page in a dialog box. ...
1
vote
0answers
78 views

What are the must have tools when working with SharePoint? [duplicate]

Possible Duplicate: List of SharePoint 2007 / WSS 3.0 development tools When developing or administering SharePoint, what are the must have tools? This question is intended to reference ...
1
vote
1answer
1k views

What cannot be developed for Sharepoint Server 2010 in 32-bit workstation? and in 64-bit workstation?

Before, I was developing remotely on Microsoft Sharepoint Server 2010 machine (Windows Server 2008 R2 Datacenter and all servers 64-bit) accessing it over internet through RDP from Windows XP SP3 ...
1
vote
1answer
1k views

EventReciever to change permissions

I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing. I have the following ...
1
vote
0answers
388 views

Content Types not visible under New Button

I have a Sandboxed Custom Action for SharePoint Designer that can add Content Types to Document Libraries. The problem is that it does not automatically add it under the "New Document". It's not ...
1
vote
1answer
233 views

InfoPath form template not displaying in custom Application Page [duplicate]

Possible Duplicate: SharePoint InfoPath formviewer part I have a requirement for opening an InfoPath item from an InfoPath library in a custom application page. Here is the code: ...
1
vote
3answers
847 views

Upload document to SharePoint document library using batch in C#

I want to know if i can upload a document to sharePoint document library using batch in C#. I know how to update and delete it using batch, but i don't know how to upload it. If i can't, what is the ...
1
vote
5answers
3k views

Error while adding SharePoint web service reference

I got stuck up with the following error, while trying to add reference for the web service Lists.asmx in sharepoint 2010 from VS.NET 2010. The document at the url ...
0
votes
0answers
198 views

Why edit option is not working on the SPGridView in SharePoint 2010?

Have created the Webpart based on http://kitmenke.com/blog/2010/02/18/editing-in-sharepoints-spgridview It does work however I want display the results based on the filter value as below it ...
0
votes
1answer
106 views

Can SPPersistedObject settings be updated by normal users if ran with elevated privileges?

I have a custom ribbon icon "Enlist" deployed to each document library. A normal (i.e. non-admin) user can click this icon; when he does, I would like to permanently save the document library ...
0
votes
1answer
244 views

Trying to view custom application page in browser results in “404 FILE NOT FOUND” error

In VS2010 I created a new .NET 3.5 solution and inside a new project for SharePoint 2010 (empty project called "SPAppPageTest"); I deployed it as a farm solution. I added a new application page, ...
0
votes
0answers
308 views

clientContext.ExecuteQuery() giving an error: The remote server returned an error: (403) Forbidden

I'm trying to connect to SP site programmatically and get List data (external list) But getting an error: The remote server returned an error: (403) Forbidden. At clientContext.ExecuteQuery(); ...
0
votes
2answers
266 views

Retrieve user's tasks from mysites using server object model

I am having trouble aggregating info on all tasks from current user programmatically. This is what I got so far: SPWeb web = SPContext.Current.Web; SPSiteDataQuery query = new SPSiteDataQuery(); ...
0
votes
1answer
348 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
3answers
85 views

SPFolderCollection valid index arguments

SharePoint 2010, c# server object model, VS2012 Long story short, I'm trying to fetch a folder of a document library, create a new folder in it from an array of names, then fetch the new folder via ...
0
votes
2answers
67 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 ...
0
votes
1answer
564 views

openfiledialog in webpart

How to implement openfile dialog in a webpart ? OpenFileDialog class could not be accessed in webpart. Is there any other way to achieve this ?
0
votes
2answers
201 views

Custom action doesn't appear

I have an issue with custom action in SharePoint 2007, basically i have the following custom action declaration: <Elements Id="CF60B88A-783A-44f8-A49D-43659AB51G7E" ...
0
votes
1answer
644 views

How to use your own custom ListItem template for Display, Edit, and New

I would like to use my own custom ListItem template. I also would like to overule the ListFieldIterator method to use some logica to include or exclude some fields dependance on user/usergroups: ...
0
votes
1answer
4k views

Feature activation error: System.InvalidOperationException: Operation is not valid due to the current state of the object

i have taken one List Email event receiver(Type is EmailReceived) and that event receiver attach with document library. when i am activate that feature got error. i have check on ULS Viewer. error ...
0
votes
1answer
720 views

How to get count related Lookup value programmatically?

Another day, another question ;) So, I have two custom Lists, "Attendees" and "Events". In the Events-List there's a Lookupfield "Registrations" which I want to fill programmatically on page_load. In ...
0
votes
2answers
360 views

How to get elements from essential List programmatically

I have gotten two lists (like a view) from Microsoft Dynamics CRM. How can I get a elements from these two lists to the C# Sharepoint code in .cs file. The Administrator of CRM told me that this lists ...
0
votes
3answers
1k views

Why are some users appearing as system account?

I have implemented a feature in my solution where by the current user's Name is assigned to a field. With certain users - this appears as 'System Account'. Is it possible that if somebody is the site ...
0
votes
2answers
508 views

How to send dynamic parameters in url of sharepoint modal dialog options

I have the following code for the javascript modal popup. function ShowSearchBox() { var options = { title: "Search Here", width: 760, height: 380, url: ...
0
votes
2answers
805 views

How to add a from lookup field value to the text

I think about how to add a from lookup value to the text ? How can I write it to another colum ? In the same list.
0
votes
1answer
166 views

TimerJob error missing public constructor

I have an issue on my SharePoint 2007 portal, where i created a custom TimerJob, but when I deploy it i get a message: MyTimerJob cannot be deserialized because it does not have a public default ...
0
votes
3answers
532 views

Webpart properties getting empty after IIS Reset

I created a custom visual user control webpart property for my SharePoint webpart. The property has a textbox which is getting empty after an IIS reset. Can anyone tell me how to solve this issue ...
0
votes
2answers
834 views

The type is not registered as safe “Custom Actions”

I am trying to create a custom actions using wsp builder, My folder structure is something like this, Now when I try to deploy solution nothing comes up however I get this error in my ULS log, ...
0
votes
1answer
176 views

Refresh Site from Adding Item

Hello I tried refresh Site from Adding Item, but if I try too Use SPUtility.Redirect("http://gzawistowskilap/SitePages/Event.aspx", SPRedirectFlags.Trusted, current); it's giving me a error which in ...
0
votes
2answers
2k views

How to get items id in properties.AfterProperties elements?

I try this in ItemAdding, but it isn't work(Gives Null): public override void ItemAdding(SPItemEventProperties properties) { base.ItemAdding(properties); if ...