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
3answers
509 views

Check Home Page Sharepoint 2010

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

Find control in application page?

This line returns null Button BtnCopy = Page.FindControl("BtnCopy") as Button; but the control is there in the markup. <asp:Button ID="BtnCopy" runat="server" the entire method is called in ...
0
votes
0answers
125 views

Update WebPart MenuItem/Verb from Client Side

Here is the scenario - I have a custom webpart where I added one custom menuitem with client side handler, now my requirement is when I click on the menuitem some text should be shown, for example ...
1
vote
2answers
888 views

Retrieving attachments from SP List

I want to retrieve attachments from a sharepoint list. But don't really know how to, any suggestions? SOLVED: Check code under picture. public void MyData(string prod) { SPWeb web = ...
0
votes
1answer
808 views

Uploading file to pic and doc library

I'm working with a webpart and saving the data to a SPList. I also got two fileUpload controls and i want to upload a picture to a picture library and a document to a document library. Is that ...
0
votes
3answers
2k 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 ...
1
vote
1answer
172 views

Update existing word document from SharePoint via code

I'd like to insert a line of text into an existing Word document that is stored in a document library. Would this be possible to do through an event or workflow? If so, how would I go about ...
1
vote
2answers
208 views

How to get the event/trigger of a SharePoint workflow?

A SharePoint workflow can be associated with a list, and configured to 'start when a new item is created', 'when an item is changed' or 'manually started by an authenticated user'. This is my ...
1
vote
1answer
213 views

Google Map Visual WebPart

Some that has an guide on have to create an Visual WebPart using Google Maps for an list.... protected override void Render(HtmlTextWriter writer) { string rScript = ""; rScript += ...
0
votes
1answer
278 views

Setting a Lookupfield for current Item in List

my use-case: I'm trying to implement an event-management system to sharepoint using visual web part(s). I have two custom lists, one is called "events". Let's say it has a column "Title" which shows ...
1
vote
1answer
467 views

Dev environment - Drives are at risk of running out of free space.

Available drive space is less than five times the value of physical memory. This is dangerous because it does not provide enough room for a full memory dump with continued operation. It also could ...
2
votes
2answers
4k 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
172 views

Fileupload image to library

i want to use an List that i create by me self that named MyList that done! Then on my webpart i want to use Fileupload to upload an picture to MyList, is it possible? Then for showing it on my page i ...
1
vote
2answers
627 views

how to have connectable web part on two pages?

I have two connectable webparts but i want to have them on different pages is it possible? If it is , how to i solve this?? public interface IData { string Mydata { get; } }
0
votes
2answers
55 views

List button two list how to save…?

Is it possible to have one button and when pressing the button i want it to save different this to two differens list , if its possible how do i solve it?... i have created an save button that saves ...
0
votes
1answer
495 views

Update ListItem

Solved it with a hiddenfield control: public void MyData(string prod) { SPWeb web = SPContext.Current.Web; SPList myList = web.Lists.TryGetList("YourList"); if ...
0
votes
1answer
27 views

I have written following code wont get it work because after my query i dont know what to write

SPWeb web = SPContext.Current.Web; SPList customerList = web.Lists.TryGetList("MyList"); if (customerList != null) { SPQuery query ...
1
vote
2answers
1k views

delete item in list

SPWeb web = SPContext.Current.Web; SPList list = web.Lists["MyList"]; if (list != null) { for (int i = list.ItemCount - 1; i >= 0; i--) { ...
1
vote
2answers
1k 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; ...
2
votes
1answer
770 views

ftp upload in sharepoint and presenting list of files on ftp server in sharepoint page

I have SharePoint 2007 portal and I need a solution for my problem the problem is as describe below I need a page (in SharePoint portal) that it could be send some files to a ftp folder in a ftp ...
1
vote
0answers
163 views

Moving files from intranet to extranet - ShaerPoint 2010

I am working on a new SharePoint project (new to SP overall) and a requirement is to "publish" documents on the intranet, across different sites, to a desired location on an extranet. The intranet is ...
1
vote
3answers
65 views

Whats the best way to create a list when a web part is added?

I have a web part I'm creating that displays links in a metro style fed from a compatible list. I'm pretty new to share point development and was wondering how can I make sure a compatible list is ...
1
vote
2answers
1k views

Get SPWeb from SPContext in WCF hosted on SharePoint

I have created and deployed a WCF service in SharePoint and I am sending requests using JQuery. Every thing is working fine except for sub sites. Lets say I have these two service URLs: - ...
0
votes
1answer
142 views

Update SPLIST Help Problem?

SPWeb web = SPContext.Current.Web; SPList oList = web.Lists["MyList"]; SPListItem oListItem = oList.Items[1]; oListItem["Name"] = TextBox_Name.Text; ...
0
votes
2answers
1k views

Error “duplicate field name” while adding content type programmatically

Judging by the stack trace, one of the following lines of code is giving me an error: private void AddcontentTypesToDocumentLibrary(SPWeb web, SPList list) { SPSite site = ...
0
votes
3answers
935 views

remove div tags from textbox

Any clue why i get the output in my textbox_moreinformation look like this?: COLUMN VALUE I'm working with two webparts, the provder webparts values i want to display on my consumer, and i only want ...
0
votes
2answers
120 views

Does Pages in SharePoint 12 hive have code behind files

I am not sure if we call them application pages or something else but am talking about standard sharepoint forms like "NewForms.aspx" or "EditForm.aspx" for lists in 12 hive. Does they have any code ...
0
votes
1answer
92 views

How we can update the sherepoint elements in event Receiver ItemUpdated or Item Updating, or add a column in ItemsAdded

I tried to do Cascade deleting in two of my colums. If I deleted in First List record i wated deleted all records at Secound List bounded with records from List One. I adding bounded data first in ...
0
votes
2answers
1k views

How delete a record from list by using a jQuery

I find aut a this article about to easy and fast delete a records from list: http://spservices.codeplex.com/discussions/245147 How could I use it ? Can I use it on cs files, if yes so how can I use it ...
0
votes
2answers
2k views

Add document to document library with more fields

My question is regarind adding a new item to document library programmatically. Basically, when I add an item to document library it goes as follows: In a document library i click add new and i ...
1
vote
2answers
60 views

Event Handler on MenuBar

whats sharepoint renderingtemplate is and how can I use it to add event handler to "Respond to this survey" link button For last couple of days I have been researching on how to add some kind of ...
0
votes
2answers
658 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: ...
2
votes
3answers
256 views

Connect two WebParts, cant get info from my provider to consumer

Got a small problem but don't know how to solve it. Getting the exception: "Input string was not in a correct format." I hope someone can take his/her time to read my codes and try to help me solve ...
0
votes
1answer
64 views

I have got a two CAML Queryies. How Could I done to see them in 3 montths from today

I have got a two CAML Queries. How Could i set them to see all object on ASP Calendar 3 months from today day? Here are the Queries: string DateOnlyQuery = "<Where><Eq><FieldRef ...
1
vote
1answer
3k 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 ...
1
vote
1answer
548 views

CheckOutFile() raises SoapException: “Your changes conflict with those made concurrently by another user.”

I'm trying to check out a file using the Lists web service. Here is my code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using Soap = ...
0
votes
1answer
5k views

How to import a csv file to the SharePoint list on the fly

I need to import in the fly day by day a records to a Sharepoint list. At end of a day I need to import a upgrade of vacation users from ending day and add them to the list. How Can I do it. Please ...
0
votes
1answer
555 views

How to add in Event Receiver Items Deleting

How can I delete a elements in secound list bounded with secand list if I delete elements in first list. I write a code, but i don't know how to delete a bounded item, please help: public override ...
0
votes
1answer
454 views

How to update existing record of list one of two in Event Receiver

I have got a problem how to update Secound list which is made by First list. All must be in Event Receiver. How Can I made difrent Event Receivers update to Diferent Lists Could You Help me with his. ...
0
votes
2answers
1k 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
302 views

How to Update properties of sharepoint 2010 feature

I have a problem with updating the properties of a sharepoint 2010 feature this is my code : using (SPSite site = new SPSite("http://vm-pc:2000")) { foreach (SPFeatureDefinition ...
2
votes
0answers
256 views

Need a Suggestion on Sharepoint project Architecture

Actually we need to develop an intranet portal for a company. There will be a common landing page and each department will have their own subsite which will be driven through a navigation from the ...
1
vote
1answer
542 views

Adding a content type to a list gives me a duplicate field error

I have the following code: list.ContentTypes.Add(contentType); It works on my dev environment, but on test fails with the following error: A duplicate field name "[GUID]" was found. I've had ...
0
votes
2answers
31 views

Giving a rights to the webpart

How Can I give a rights to the webpart. Now only I can see projecting by me webpart. I getting this error when I try to open each of user without me: How Can I set a User privilages to the grup. At ...
1
vote
2answers
572 views

Respond to survey button “Code Behind” Survey list

When any user clicks on "Responds to Survey" button/link I want to perform some operation using code behind but can't figure out how can I do it or which event handler can be used.
0
votes
1answer
863 views

Sharepoint, changing a class of CSS in Sharepoint Modal Dialog

How can I change a name of class in Sharepoint Modal dialog. I want to color a background of massage so it be good to change a name of class="ms-dlgFrameContainer", but where could i Find this class ...
1
vote
1answer
77 views

Transfer user permissions

I have a SPListItem for which I need to transfer all directly given permissions from Alice to Bob. It sounds like a common scenario, but still I was not able to find a solution (except third party ...
2
votes
1answer
6k views

How to add a registration button to a calendar list / list form?

my use case is: I want to create an event management system without using meeting workspaces (sadly I/We can't use them, at least the senior dev. told me). There shall be: One Calendar List, ...
0
votes
0answers
78 views

Problem with adding a Sharepoint Pagging to the ASP Calendar

I have got a list with 360 000 elements. I must add pagging on it because if I put only 96 000 elements to the Calendar the site with this webpart load me about 5 minutes. The module works like that I ...
1
vote
1answer
7k views

How to run a popup window from code behind in web Part writen in C#

I must run a popup warning when somebody exceeds some value. I tried a SharePoint Modal Popup using JavaScript, but I don't know how to run something from code behind with JavaScript and a SharePoint ...