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
1answer
54 views

Comma is being appended to values when adding new item to list through C#

I have a custom web part form which takes a few values from text boxes and adds the new row to a list. The problem is that when I click 'save', the values are being saved but some fields like ...
2
votes
2answers
32 views

Navigation on webpart

I don't really got a problem just a question. After googling around I couldn't find any answer on what I'm looking for. Is it possible to put a <asp:TreeView/> or multiple ...
0
votes
1answer
121 views

Custom Field PropertySchema Type=User

I have a custom field in my SP Project. In my .xml file, I have a propertySchema and a user field inside it. Currently the field does not accept multiple users/groups. How can I change that? I ...
1
vote
1answer
23 views

Clone Existing SP2007 Site to New Environment For Testing and Staging

I am currently working on a large SP2007 site for a client. This site was initially built from a VS solution and some of the components of the solution can still be deployed to production if code ...
1
vote
1answer
176 views

Create an item (with Choice/User Fields) using Sharepoint Data Services

I am using Sharepoint 2010 Data Services to create items on a table. My table has a column called Priority which has High, Medium, and Low items in it. When I try to create an item in this table ...
2
votes
2answers
310 views

Get Approvers Group - C#

I'm working on a workflow project, where I have to get all the users in the Approvers group. In order to get the approvals group, I run the following code: SPGroup approvals = ...
0
votes
2answers
66 views

Code Behind in SharePoint

I have a .aspx page and a .aspx.cs page. These were created in VS. I've copied the solution folder to SharePoint using SPD. When browsing the page I get an error Parser Error Message: The codefile ...
0
votes
2answers
51 views

Sharepoint Development Process Best Practices

I would like to ask some simple questions regarding the best practices of Sharepoint 2010 development process. 1) I am supposed to maintain and add new sites to an already installed Sharepoint site. ...
0
votes
3answers
1k views

How to close an infopath form in C# style?

I tried XDocument.View.Window.Close(true); but it tells me "The name 'XDocument' does not exist in the current context" I even tried thisXDocument.View.Window.Close(true); but still same error. What ...
3
votes
1answer
741 views

Can the zoom/scale on JS Grid conrol in gantt mode be changed?

I have created a webpart with a JS Grid control with gantt enabled. I want the gantt view to display months instead of weekdays. Anyone have an idea how to do this? Update: The following link is what ...
1
vote
1answer
39 views

Programmatically removing web parts in a sandbox solution? (Sharepoint 2010)

I had a problem with web parts being duplicated whenever their feature was reactivated, so I made a question about that. It was answered (and correctly so, I think) - I have to programmatically ...
0
votes
2answers
37 views

Request.Url.AbsoluteUri displaying wrong url

var img = new Image(); img.ImageUrl = Request.Url.AbsoluteUri + "~/_layouts/images/Cv.Knowit/pie-1-4.png"; I am getting to this site wingtipserver/SitePages/ ...
0
votes
2answers
51 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 ...
2
votes
3answers
62 views

Item with C# onclick in SP List

I'm currently making some customizations to a Document Library in SharePoint 2013, such as a custom filtering webpart. In this Library, I have two fields that originally were (multi)lookup fields ...
0
votes
1answer
40 views

String to Decimal Conversion in C# (Sharepoint)

Converting string to decimal seems to be a familiar question. But in my case the an error is throwing while I tried to convert a string value "10.00000000000" to decimal. I tried following codes ...
1
vote
1answer
60 views

What are the best practices in code structure for huge projects

Soon, I will start a new sp2013 project and I want to start it fine from the scratch. I just read the Application Lifecycle management chapter from the book Professional Sharepoint 2013 development ...
0
votes
1answer
18 views

Load All Task Items in to Page?

I have Task list in home page containing multiple task items, Is it possible to approve multiple items at once, instead of one at a time (being redirected to the start page after each approval..) ?
0
votes
1answer
103 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
28 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
24 views

Is i possible to render a visual webpart

I am trying to render controls inside a visual webpart but get the Error: Runat="Server" is missing so i googled out that i should use public override void VerifyRenderingInServerForm(Control ...
0
votes
0answers
17 views

I am using a Visual Webpart that are that inherits from UserControl

i am tring to download to pdf format using iTextSharper , but now the problem come when i am trying to render the controls. I make it work with Label.RenderControl(); But when starting to work with ...
0
votes
0answers
22 views

Tell compiler that the control is rendered explicitly how to

Tell compiler that the control is rendered explicitly by overriding the VerifyRenderingInServerForm event. public override void VerifyRenderingInServerForm(Control control) { /* Verifies that ...
2
votes
1answer
393 views

Display Parent Navigation Items via API

I'm creating a custom team site from a site definition and I can't seem to set the site to display the same navigation items as the parent site for the Global Navigation. I've tried using this code: ...
-1
votes
0answers
13 views

Rendering bulletidlist or repeater [closed]

I am trying to bulletedlist.rendercontrol But i get runat server form tag is missing i am trying to render it to pdf format, Should i maybe add something to web.config or What could be The problem?
1
vote
1answer
325 views

Error when enumerating through site columns

I'm working on a Sharepoint 2010 site. I am trying to run this script from a website in order to create an xml containing info on my site columns. $sourceWeb = Get-SPWeb http://farmstuff:1284 ...
0
votes
0answers
15 views

Passing variables inside a header

This question may sound a little awkward, but it's because I'm not exactly sure how to ask it. If anyone can re-phrase it better please let me know and I'll be happy to do so. Basically I am trying ...
0
votes
1answer
25 views

How to list all alements by CAML to SPGridView

Is it possible to display the listitems retrieved from a CAML query in a SPGridView? How can I implement it?
1
vote
2answers
80 views

Advice on starting development for SharePoint in C#

I'm about to start development of client-side application (C# using .NET 4.0) that connects to SharePoint. Mainly to download/upload documents. I've found out that there are several options: using ...
0
votes
1answer
17 views

Package not deploying everything in it to server

I have a package solution as, <Solution xmlns="http://schemas.microsoft.com/sharepoint/" SolutionId="id" SharePointProductVersion="14.0"> <Assemblies> <Assembly ...
0
votes
1answer
76 views

Render label using itextsharp to pdf and word

Could not load file or assembly 'itextsharp, Version=5.4.1.0, Culture=neutral, PublicKeyToken=8354ae6d2174ddca' or one of its dependencies. The system cannot find the file specified. I have added ...
0
votes
2answers
50 views

Site column cannot be removed

How do i remove this column? I did create a new Content Type with Title, Nickname and Comments columns. I DID NOT choose the "CommentID" column. But it still gets there, how do i remove the site ...
0
votes
3answers
252 views

Value does not fall within the expected range

SPWeb web = SPContext.Current.Web; SPSiteDataQuery query = new SPSiteDataQuery(); query.Lists = "<Lists>" + "<List ID=\"" + ...
0
votes
3answers
71 views

Collection was modified; enumeration operation may not execute.

I have made it work to delete attachment but can not delete listitem Error: Collection was modified; enumeration operation may not execute. private void DeleteFromSharePointList(HyperLink hp) { ...
5
votes
6answers
2k views

How to consume custom WCF service hosted in Sharepoint 2010 from outside in C#?

I've this WCF web service hosted inside a Sharepoint 2010 web application. This service is created using the following factory: ...
2
votes
1answer
92 views

How to set a lookup field by c# code

I have a list in SharePoint and it contains a lookup field. Now I want to insert an item to this list, but don't know how to work with the lookup field. I tried the following code but no item is ...
9
votes
2answers
171 views

“Best Practices” for SharePoint customizations/development to easily migrate to new SharePoint versions

Do you know of any documents that describe “best practices” for SharePoint customizations (especially custom developments) in order for these customizations/code (for example web parts, event ...
0
votes
1answer
34 views

Delete Item in Document Libarary using Client Object Model?

I have custom Database, this Database having SharePoint Item URL like(http://site.com/Shared Documents/a.pdf), so my challenge to remove this file from sharepoint Library using Client Object Model.
5
votes
9answers
3k views

ASP.Net WebPart or SharePoint WebPart

This is an almost religious question; what are your preferred base classes for building WebParts in SharePoint? Are you using the ASP.NET WebPart (System.Web.dll) or the SharePoint WebPart ...
0
votes
1answer
22 views

Custom form with link to document

I have a custom form. In it I need to add a link to a document library. I need that this links works in the same way as a link in a document library (i.e. - when you click on it you have the option to ...
1
vote
1answer
38 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 = ...
1
vote
1answer
36 views

Cannot complete this action creating view programatically

I am trying to create a view programatically to be used in an XSLTViewWebPart. When I try to browse to the view I got this exception: Cannot complete this action. Please try again. I set the log to ...
0
votes
1answer
55 views

Programmatically adding a sequence number to the 'Title' column during item creation in SP List

As per the title above, I have a list that stores IT support requests. I need a sequence number that matches with the item ID and I want to add this sequence number to the Title of the request. I ...
0
votes
0answers
28 views

How to do editing elements and Deleting Elements In Sharepoint List using Grid View?

How Could I do deleting, and Editing Element in Sharepoint List by using Grid View ? I menage to show all elements on the list, but how Can I do editing and deleting elements? <div ...
1
vote
1answer
31 views

Custom Page inside SharePoint 2010

i am building a .aspx Terms & condition page for my Intranet with Save & Cancel buttons: When we click on Save the user save inside a list as he agree on the terms & Condition content ...
2
votes
2answers
1k views

Programmatically create a site collection in an existing, mounted content database

I'd like to create a site collection from a custom application page in central admin. The administrator needs the option to specify an existing, mounted content database to store the new site ...
0
votes
0answers
54 views

Custom grid to edit items, SharePoint 2013

I've got a list that contains information about a project. This list has information about: "Start date", "End date", and "Members". I then have a list that will contain information about how many ...
0
votes
1answer
24 views

I set up in Sharepoint Create Elements, and edit elements only created by user

http://screencloud.net/v/2xVc But when manager Is created a element it's generate me error. How do If on development If i Can delete element? Please help. I have got this sort of code: for ...
0
votes
1answer
28 views

Change .aspx on a SPView

I'd like to create a SPView for my list that points to a complete custom aspx page. And I need to do that through c# code. Even if I could just override the AllItems.aspx in a Visual Project Project, ...
1
vote
1answer
59 views

Customizing discussions list in SP2013 with JsLink

I'm working on a community site and was looking at ways to modify UI of the discussion list that is presented to the user (and possibly more going forward). It is my understanding according to the ...
0
votes
1answer
32 views

I want to delete attachment and listitem but using this code it deletes all the listitems

private void DeleteFromSharePointList(HyperLink hp) { SPWeb web = SPContext.Current.Web; web.AllowUnsafeUpdates = false; SPList myList = web.Lists["Document cv"]; ...

1 2 3 4 5 36