The process of developing software, including requirements gathering, solution design and analysis, implementation, testing, deployment, support and maintenance.
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)
{
...
1
vote
1answer
46 views
Insert Hyperlinks in Custom Content Editor Web part SP 2010
I have a weird situation in content editor web part. entered text and made it as hyperlink - then went into second line to enter text and text still follows the hyperlink which was applied on the ...
0
votes
0answers
15 views
Delete attachment from list
After debbuging listItem has the url http://wingtip.se/attachment/1
and the navigate url has http://wingtip.se/attachment/1/document.doc
so the listItem the extension is missing thats why i cant ...
0
votes
0answers
22 views
PageRequestManagerServerErrorException
I am working on custom web part on SP2010 using C#. I sometimes the following javascript error on console while submitting the form from UpdatePanel button using postBack:
SCRIPT5022: ...
0
votes
1answer
35 views
sharepoint sent email attachment don't having pdf format
code is developed to attach pdf and send as email.
But email received dont contain the pdf format. On click of file, it gives option of "open with".
mentioned is code used....
"attach1" is the path ...
0
votes
0answers
19 views
Delete attachment using checkboxes
i have a repeater that has hyperlinks and checkboxes
i am trying to delete from database and also from sharepoint list attachment the attachment that checked in the repeater.
var db = new ...
0
votes
1answer
25 views
List with Page_Load event
For a project I'm working on, I'd like to get a Page_Load C# method behind a Document Library, but I've been unable to achieve this, so far. Any help would be greatly appreciated!
Some details on ...
0
votes
2answers
75 views
create survey from code with rating scale
I'm creating a sharepoint survey with VS2012.
I managed to create the survey with several question and here is some sample:
SPWeb web = properties.GetWeb();
Guid id = ...
0
votes
0answers
19 views
Can only click on one attachment at time not multiple ones
For uploading to List I am using the Upload Button.
First I have uploaded a word document the first image, when I click it I can open the document, after that I upload a second document a pdf ...
1
vote
1answer
84 views
How to programmatically access and manipulate Discussion item and replies?
How to access and manipulate Discussion item and replies?
I have a discussion board that has a check box, based on the input I switch the permissions of that discussion post for a specific user (from ...
2
votes
0answers
109 views
What are the current options for a Sharepoint Online trial from Windows XP?
A year ago I had 30-day trial for Office 365 (Sharepoint Online 2010). Everything worked fine from my Windows XP SP3 (x86. 32-bit) for development from Infopath Developer and Sharepoint Designer ...
0
votes
0answers
20 views
Fileupload to List and DataBase display attachment in Repeater
I have created a Fileupload that save a attachment to a list , and also to a database
Now i am trying to display the attachment in a repeater from the database
I get it to work to when pressing upload ...
0
votes
2answers
84 views
How to open a file using Item Id in SharePoint document library?
I am working on SharePoint Foundation 2010. I want to open file from a link.
I found a solution "Link To Document" content type. But in "Link To Document" content type we need filename of original ...
0
votes
1answer
18 views
Fileupload cannot find file
When I click on upload button it says that my fileupload does not contain a file. Why that? Did I miss something in my code?
//Add profilepic to SP list
SPList ...
1
vote
1answer
24 views
Getting CultureInfo from Web.Language
I can get language code, e.g. "1033" for en-US by,
using (SPSite site = new SPSite("https://portal.loonetoones.com/default.aspx"))
using (SPWeb web = site.OpenWeb())
{
...
1
vote
1answer
70 views
Is it possible to check if a document has unique permissions using SP2010 Client Object Model
I have a 2010 site that has many documents in many different folders. I believe a number of them have broken permission inheritence. Is there a way i can code a C# console app to utilise client object ...
0
votes
2answers
34 views
Custom action with custom code doesn't work properly
I have an action in my document library, but it doesn't work as it supposed.
So I have here definition of my custom action:
<CustomAction
Id="MyProject.Google"
Title="Go to google"
...
0
votes
1answer
28 views
Listbox in webpart has no selection
I'm having a problem that's really blowing my mind right now, because it seems like some basic .net functionality isn't working properly. No doubt I'm missing something really obvious. I could really ...
0
votes
1answer
124 views
how to made new post for sharepoint newsfeed webpart through custom webpart
i have a requirement to made new post through custom web part and this must be shown on sharepoint 2013 news feed web part
i am new with share point after the lot of googleing find a list of news ...
1
vote
1answer
38 views
How write a code to webpart which change the password to Acrive Directory
I want to write a webpart to change/reset a pasword to Active Directory. How Could I do it ?
Where are the user password are situated ?
0
votes
2answers
42 views
WSS 3.0 Contributor Permissions can't delete folders
SPUtility.ValidateFormDigest();
SPSecurity.RunWithElevatedPrivileges(delegate()
{
SPSite siteColl = SPContext.Current.Site;
...
0
votes
1answer
46 views
Creating SPSiteCollection, top level site programmatically
I have been given a task to create an event that dynamically creates new site collections on our sharepoint webApp. Thing is using Central Admin I can create "http://testsite.com/sites/newSite_1" and ...
3
votes
4answers
101 views
SharePoint List / Library property bag
I'm working with sharepoint 2007 and i have a question, does a sharepoint library / list has something like property bag, where i could store some properties for the list? Like a SPWeb object.
Or ...
0
votes
1answer
46 views
SPLongOperation break on error and stay on same page
I have a question regarding SPLongOperation.
Basically i'm using it while some actions are happening, and if everything goes well it should redirect user to an other page, but if something goes wrong ...
0
votes
1answer
34 views
How to show what level of permission a group or user has to a site?
In SharePoint 2007 when you go to a site and view advanced permissions (Site Actions - Site Settings - Modify All Site Settings - Advanced Permissions) you are presented with a page that has a table ...
0
votes
2answers
28 views
Capture SharePoint role group and group members?
For our audit process I need to regularly capture all of our SharePoint role groups (for our main site collection) and the members in each group. Is there a reliable way to approach this problem?
1
vote
1answer
162 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, ...
1
vote
1answer
47 views
SharePoint, LINQ & Reporting Services Tools
I'm new to SP and SSRS, so I want to check if my thoughts are correct.
Report Builder and BIDS suck on data retrieval so I have to go deeper using code.
Is it possible to write some code in C# using ...
0
votes
1answer
48 views
file downloading in sharepoint
I've created a web-part. I've added few documents to it.
I'm implementing download functionality. I want file download dialog.
My code is like this.
DownloadItem(SPListItem item)
{
// Get physical ...
0
votes
2answers
65 views
Will SharePoint developers still need asp.net webforms skills for 2013 and beyond?
Will asp.net webforms skills still be a requirement for SharePoint development down the road? Or will webforms become just one development technology out of many a SharePoint developer can choose ...
9
votes
2answers
170 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
301 views
How do I get C# code behind a Document Library?
As part of an internship assignment, I'm working with SharePoint 2013. I'm completely new to SharePoint in general.
Part of this assignment is a labeling system. The idea is that users can add labels ...
0
votes
2answers
49 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
2answers
120 views
How to copy files from one document set to another document set
In a event receiver depending on some business rules, I need to copy the Document Set CONTENTS to another existing document set. However I cant find how to do it. I have the code that gets the ...
0
votes
1answer
24 views
SP2007 using Source token in link
In SharePoint 2007 in some occasions i see that when im redirected to some pages etc, i see a source in query string, and this i can use to be redirected back to the original page.
I've read on msdn ...
0
votes
3answers
175 views
Server Error in '/' Application. Runtime Error
I am new to SharePoint. I am developing a web part. I that I have created the .aspx page. When I am going to access that page by the URL it throws an error like.
Runtime Error
Description: An ...
0
votes
1answer
36 views
Link to document library
I have a small issue, basically i have an instance of document library / list, now, how can i get a link to that list / document library?
I'm working with sp 2007
To clarify, here is the code:
...
0
votes
1answer
45 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
0answers
32 views
Link in ECB menu 'Send To'
I have a small question regarding the poisition of the menu in "Send to" in EditControlBlock menu on an item.
Basically when you click over an item in document library or whatever you have a menu:
...
0
votes
1answer
135 views
Fetch data from Term Store Management in Sharepoint 2013
So I am wanting 3 different navigations and I only see how to add 2 though in the snippet area in Design Manager.
I am comfortable with C# but not very knowledgable in Sharepoint. Does anyone know ...
2
votes
2answers
89 views
Can we avoid clunky hiding of WebParts?
It's a real drag and performance killer to have to load all the WebParts on a page and then laboriously hide and reveal all the ones relevant to user groups / permission levels. Especially when on the ...
0
votes
3answers
241 views
Is it possible to have CAML Join without Lookup Columns?
I am new to SharePoint. I am developing a web-part in that I am trying to join two list.
I have a same web-part in that lists were join using LINQ query.
But it takes more time to fetch the data. So ...
1
vote
1answer
26 views
Wrong skilltype in listbox
On page_load, in listBoxDatabase it shows both Programming skills and Database skill, i just want it to provide the "Database" skill.
This is my table in SQL:
This is my method that provides it ...
2
votes
4answers
57 views
In a site with two servers where can I expect to see my ULS log entry?
I'm using SPDiagnosticsService to write an entry to the ULS logs. On a load-balanced environment with 2 front-end servers I can't find the entries at all, but it works fine on my local dev environment ...
0
votes
1answer
32 views
System.UnauthorizedAccessException was unhandled by user code in simple code
I got this exception in very easy code and I have running with elevated privileges around it.
private void ChangeVersioningOnDocumentLibrary(SPListItem item, SPItemEventProperties properties, SPSite ...
0
votes
0answers
15 views
Wrong attachment url when display on image control
First i'm saving the attachment to a list & the url to a db. But when i want to get the url from a db and show it on a image control i dont get the image to be shown.
...
1
vote
2answers
335 views
How to retrieve Users and Groups seperately from a “Person or Group” column via C# code?
I have a field in the discussion list, which allows the initiator of the discussion to specify the people to share the discussion with.
This field is typed as 'Person or Group' that allows selection ...
1
vote
1answer
127 views
Remote Powershell: New-SPUser : Access is denied. (Exception from HRESULT: 0x80070005)
I am running a remote powershell script which attempts to setup a web-application and site collection and then attempts to add a user to that site collection.
I receive the following error:
...
1
vote
1answer
77 views
Add quicklaunch link with querystring parameter programatically
I want to add some links to Quicklaunch bar. The link needs to have query string parameters, eg.: /sites/project/default.aspx?mode=filter
string url = "/sites/project/default.aspx?mode=filter";
...
1
vote
2answers
213 views
Error in Web.EnsureUser(user) :- User Not Found
Hey Friends I am trying to develop a web part in that I am fetching the user name.
But doing this I am getting the error that User cannot be found.
But the main thing is that in the line where I ...

