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

learn more… | top users | synonyms (3)

0
votes
2answers
444 views

How to Set Specific Site Collection as SharePoint Search Scope using C#?

I have two site collections as Portal1 and Portal2. In Portal2, I have enterprise search centre and will add custom Search scope for Portal1 site collection using C#. I deployed project in Portal2 and ...
2
votes
1answer
2k views

Why does SPUtility.Redirect throw a thread abort exception

Wherever I use SPUtility.Redirect in my code it works ok for the user but i see a thread abort exception in the ULS logs, the message starts with: "ExceptionType: 'ThreadAbortException' ...
1
vote
1answer
525 views

Custom Field does not save

I've created a list that contains a cumstom field. The custom field inherits from SPFieldUser. After I created a new ListItem (webfrontend) and have a look on the elements details the field is empty. ...
2
votes
3answers
568 views

What is the “best practice” for Dev/Test/Release for SP2010?

I am a .Net coder new to SP. I've set up a new SP2010 in our test environment but wonder what the best practice is for the cycle I am familiar with "dev->test->live" with SP? e.g. How can I make test ...
1
vote
2answers
156 views

Customise new.aspx for creation of custom document library

I have created a new document library template in CAML using the Visual Studio template. I have only made a couple of changes and these are all in the Elements.xml (e.g. to change the title, id etc. I ...
0
votes
3answers
134 views

Is there a way to detect if a page is beeing published?

following situation: A user is editing a page in the Pages Library (PublishingFeature). The list settings are requiring a checkout to edit a document. Now he edit's a lot of things on this page, and ...
2
votes
1answer
1k views

How to add a webpart to 2nd “Top” Zone of a Webpart Page Programmatically

I Have a webpart page, which has layout as shown in picture, Now I want to add a webpart to second "Top" zone of my page but I dont know how to access it, If I want to add it to first top zone I ...
0
votes
1answer
626 views

Can I use a .cs file in a SharePoint WebPart

When creating SharePoint WebParts what is the proper way to go about accessing common methods. For example when developing in .net webforms you can add a .cs file to the App_Code folder and consume ...
1
vote
3answers
968 views

Unable to programatically update list title

If I use using(SPSite site = new SPSite("http://somwewb")) { using(SPWeb web = site.OpenWeb()) { SPList lst = web.Lists["My custom list"]; lst.Title = "My custom list 2"; ...
3
votes
2answers
523 views

Generate file then close SharePoint dialog page

I have a custom solution where I open a SP Dialog box through Javascript. From this dialog, I want to generate a file and sent it to the user when he is clicking on a button, than close the dialog. ...
0
votes
1answer
295 views

SpServices Cannot Get Sub-Sites without Being Site Collection Admin

I am building a web part which is delegated by permissions. It is displayling members of the Members group and Owners group onto the page, and if a user does not have Members or Owners permissions, ...
0
votes
3answers
427 views

Access Denied for SPUserCollection.remove()

Works for administrator but not working for a normal user. I even tried it with "SPSecurity.RunWithElevatedPrivileges(delegate() {});" after breaking RoleInheritance, and even tried ...
2
votes
1answer
182 views

Limit the number of views in a web part

Is it possible to select which views of a document library that should be available in a web part displaying the document library? This seems to partially solve the problem: ...
0
votes
1answer
260 views

EntityList empty when querying items provisioned in List Instance XML

I'm not sure if I have found a bug here or if I'm doing something wrong. I have a list which I provision using a SPI in Visual Studio, in the List Instance XML I provision some default list items ...
0
votes
1answer
31 views

How to replace a Default List “Events” with a new custom list for all the sites

I am trying to find a script that will replace Sharepoint Events List with one of Custom List i created + Copy all the data of Events list to my newly created list. I know how to Delete a list and ...
0
votes
1answer
92 views

Different Value of Lookup Field in different Views

here's the code using (SPSite site = new SPSite("https://mysite.com/Ting/default.aspx")) { using (SPWeb web = site.OpenWeb()) { SPList SourceList = ...
2
votes
2answers
4k views

ListData.svc returns Error 400: Bad Request in Visual Studio

I wanted to use the REST Service in an application. So when i add the service reference in Visual Studio i get this error There was an error downloading ...
2
votes
3answers
1k views

SP2010 Remove options from the Site Actions Menu

For a publishing site, I'm able to add Custom Actions to the site actions menu. Now I would like to hide all the default ones (except Edit Page). I tried to do this with the HideCustomAction Element ...
1
vote
2answers
973 views

Sharepoint online Custom Expiration

I was wandering if someone could assist, I am currently trialling office 365 and would like to use sharepoint online. One of the main reasons I need sharepoint online would be for Document ...
0
votes
4answers
205 views

Should I learn CAML? [closed]

I've been spending the last few days studying sharepoint and plan to work with it for a long time - but I've only just heard the word CAML mentioned and seen it's querying in action, is it something ...
0
votes
2answers
428 views

Beginners question regarding code-behind for aspx pages

I've been studying sharepoint for a matter of days now so please bear with me if I'm missing something really obvious. I've followed a couple of guides that have got me familiar with the process of ...
1
vote
1answer
58 views

Webpart updating event

is their a way to listen if a webpart has been updated. like a event reciver. i could not find anything about it, perhaps if i added a itemupdated event, for pages that have been edited when the ...
0
votes
1answer
662 views

Avoid metadata columns in SOAP response

I searched around the internet (and on this stackexchange site), but didnt find any answer. I wrote a small C# application that should retrieve some data via the SOAP webservice of a sharepoint ...
1
vote
3answers
940 views

How to work in Sharepoint 2010 Team based development

We have following environment to create a publishing fully branded portal. Three developers each one have sharepoint 2010 installed on their workstation. One Server so that when each dev finish its ...
0
votes
2answers
89 views

How to use values from 2 item collections?

I'm trying to use values from 2 SPListItemCollections, as one of them have a lookup field with values from the other list. The reason why I need to do this, is because I need the value from the other ...
0
votes
2answers
233 views

FileNotFoundException when getting a list that EXISTS?

I am having the following exception when trying to get a list that I know it exists. yes, I know the using should not be used in this case but thats not my code :), but I dont think thats the problem ...
0
votes
1answer
879 views

Changing all webpart's Zone ID on a Page programmatically

I Want to add all the webparts already exists on a Page with different zoneIDs into "Top" zone using c#. I know i can use this code of line SPLimitedWebPartManager wpManger = ...
2
votes
1answer
733 views

How to register an ashx handler through sharepoint 2010 farm solution

I have a 3rd party control that i want to add to the web part. That 3rd party control uses a generic ASHX handler. I can always add the registration to the actual WFE web.config but it's a bit ...
0
votes
1answer
561 views

Specify character encoding in webpart

really simple: I have a visual webpart with danish letters (æøå) which is malformed when deployed - most likely as a result of the wrong characterset encoding. How would I go about specifying this in ...
0
votes
3answers
994 views

List using subsites as items?

I'm looking for a way of AUTOMATICALLY adding an item to a list on a root-site when you create a new subsite of a specific type. Context: I'm building a "Project Portal", and there's a requirement ...
2
votes
4answers
1k views

Document Properties Demotion from ListItem field is not working

I have a content type in a library configured with a word document as a template, it is the default content type. When creating via the UI from New item entering information into the DIP sets values ...
0
votes
0answers
427 views

Styling Sharepoint Mobile Pages

Myself and my team have been given the (almost) impossible task of styling SharePoint 2010’s Mobile view. We have been following the walk through for base styling (Mobile How to) but we are coming ...
1
vote
2answers
462 views

Disable value in dropdown menu after being selected

I have created a library in which i am using the drop down column with some values.These Values will depend on the group to which the user belongs. For Eg. If Drop Values are A, B , C, D, E and ...
0
votes
1answer
4k views

The file name you specified could not be used. It may be the name of an existing file or directory

SPContentTypeCollection listctc = list.ContentTypes; In that line,. I am getting this error: Invalid file name. The file name you specified could not be used. It may be the name of an existing ...
5
votes
5answers
882 views

Customize a Delegate Control in SharePoint 2010

I created a simple project to Customize a Delegate Control in SharePoint 2010 such as in msdn article (http://msdn.microsoft.com/en-us/library/ms470880.aspx). Source code: Class: using System; using ...
0
votes
1answer
805 views

When to use SPDocumentLibrary?

Since it inherits from SPList and the only way I know to create a SPDocumentLibrary is to convert it from an SPList object using: SPDocumentLibrary lib = (SPDocumentLibrary)list; Why would anyone ...
0
votes
2answers
2k views

How deploy a WSP with external .dll

I'm here to ask a newbie question... I'm developing a solution for some web site in Sharepoint 2010. No problem to deploy and test... Then I introduce a new project of a DLL in my Solution... when i ...
0
votes
2answers
227 views

SPWeb object is empty

I create a SPWeb object with a relative url to my SPSite using (SPWeb web = SPContext.Current.Site.OpenWeb(url)) { SPList centralManagementList = web.Site.RootWeb.Lists["mylist"]; string id = ...
2
votes
3answers
744 views

SPDispose false positive

I got many warnings from the SPDispose checker like this: ID: SPDisposeCheckID_140 Module: xx.xx.dll Method: xx.xx.Layouts.xx.UpdateWorkspace.Page_Load(System.Object,System.EventArgs) Statement: ...
0
votes
1answer
1k views

How do I update/refresh a web part using an AJAX Update panel every 5 or 10 minutes?

I have a news and announcement web part that I would liek to refresh every 5 or 10 minutes so users get the latest information. I have a bunch of asp controls within an update panel's contenttemplate. ...
0
votes
2answers
2k views

Adding row values to a specific column in a datatable?

I am tryin to retrieve the url of image attachments from a OOTB announcements list and add it to a datatable column I created named "Images". The respective image control in my web part displays the ...
3
votes
2answers
2k views

SP 2010 Custom Access Denied Pages - 403 error

I've used the following powershell script to change the default access denied page for my web Application: Set-SPCustomLayoutsPage -Identity "AccessDenied" -RelativePath ...
4
votes
2answers
1k views

Moving a web part to a different zone on a page

How do I programmatically move a web part from one zone to another on a page? I have multiple sites that I want to loop through each site and update the page.
0
votes
1answer
420 views

SPWeb.GetFile for an old version of file

I have a document library with enabled versioning, I added an xml file, then added it again, but I have edited one value in it. Now I would like to get the content of both files in C# to compare them. ...
2
votes
1answer
430 views

getListItems returning MyTasks not All Tasks

I am creating some customized web services for my client. I needed to fetch all the tasks in a Sharepoint list. I used following code for that: NetworkCredential credentials = new ...
0
votes
2answers
205 views

Gather Document Library items, group by subfolder

My company has a document library with several levels of sub folders. I'm aware this isn't ideal, meta data would be better, etc., but this is what I have to work with. I'm looking to list out the ...
4
votes
1answer
3k views

List does not exist error while using GetListItems

I am trying get Data of a list using GetListItems Method of Lists.asmx Here is my code: XmlDocument objXMLDocument = null; NetworkCredential credentials = new NetworkCredential("user", "pass", ...
0
votes
0answers
90 views

Access parent field values from custom field definition

I've got a form that contains different custom fields. During vallidation of field1 I need to know the value of field2. Does anyone know how to access the field? Or perhabs it is possible to connect ...
2
votes
3answers
2k views

Attempt to get property CheckOutType of SPFile cause 'System.NullReferenceException' exception

I have a strange situation: If the "Require Check Out" and "Create Major Versions" options are switched on for the current Document Library, then when I try to get the CheckOutType property I receive ...
0
votes
2answers
1k views

programmatically list validation

I'm looking for a way to implement programmatically vallidation for NewListItems/EditListItems. One way I found was: to use the ListEvents and Validate on ItemAdding / ItemEditing. But instead of a ...