sharepoint

How do you add a Document programatically to a List in SharePoint?

I am using SharePoint 3.0 and I have an XML document that I am using in my application and I want to keep a history of the document so naturally I want to use a SharePoint Document List. How do I add the document diagrammatically to a List? Also Can I set permissions on it so that only admins can view/edit the document? ...

Is calling the SharePoint Web Services from a Silverlight application secure?

In a public internet scenario, is it possible to call the SharePoint Web Services from within a Silverlight application (hosted in the same site)? Is this secure? The SharePoint site is a public-facing one. ...

Importing bulk data into sharepoint

I have an issue with a new sharepoint install that we've recently deployed to replace an ageing content management system that I implemented a few years ago. What I'd really like is to save my colleagues as much effort as possible by transferring the content from my CMS into sharepoint. I'm not very good with sharepoint yet, and my dev...

Error Creating Site Collection Programatically

I have a console application that is going to be used to parse an input file and create site collections based on the input. It is being run on a WFE in the farm, by a farm admin account. When attempting to add a site collection to a web application with a valid user an ArgumentException is thrown deep in the stack with an error message ...

SharePoint: How to set most users to read-only with broken permissions

Imagine a MOSS 2007 farm with 1500 sites where the permissions are in bad shape with broken inheritance, permissions granted to individuals, etc.. How would someone go about making most of the farm read-only to most users without addressing each site individually? Assumptions: Two weeks left for planning Four hour window to apply per...

Enumerating SPList.Files is bad....

Hi, I'm looking for a way to add a text file to a SharePoint list that DOESN'T enumerate the entire file set. According to this SharePoint best practices article, you shouldn't access the SPList.Files property because it enumerates the entire collection. Unless you actually want every item, then it's very inefficient. All I want to do i...

Default content editor in list form doesn't allow image alignment

I need to be able to adjust the alignment of an image in an "Enhanced Rich Text Field" in an announcements list in MOSS 2007. However, the default content editor in the edit form for the list doesn't provide a way to do that. What's the fastest way for me to make sure users can align images? My first thought was to customize the DispF...

Nested MasterPage in SharePoint not working

I have a SharePoint 2007 Server and want to create a site with a nested Master Page. I created a new Master Page, test.master: <%@ Master MasterPageFile="~masterurl/default.master" %> <asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderMain" runat="server"> Test123 <b> <asp:ContentPlaceHolder runat="server" ID="Test...

how to deploy a c sharp code to sharepoint 2007

in sharepoint 2007 ( moss ) i need to implement a button . a button to create a custom action. this custom action registers a JavaScript file and a startup script. I have a c sharp code for this purpose. i am not sure how to use the c sharp code. i was told the C# code just needs to be compiled into an assembly and deployed to the Sha...

How to create SharePoint Site definition with custom lists using WSPBuilder?

Hello, I'm using WSPBuilder and I want to create a site definition this site definition contains some custom list definition (some list creates based on "Custom List" template). The site contains also some files the will copied to _layouts folder (which I know how to include it the .wsp file). My request here is how i can create the site...

Problems requesting the LDAP: The server is unwilling to process the request.

We have written an authentication provider for a SharePoint web application which can requests multiple LDAP directories. One of the LDAP server have to be requested via SSL. So we imported the CA certificate which was used to sign the LDAP server's certificate into the certificate store of the SharePoint server. The following code s...

Sharepoint woes: Could not load file or assembly - BadImageFormatException

I've been working on a project that's been a rather seat-of-the-pants experience. We have MOSS 2007 and Silverlight 3 installed. We're trying to make use of some new 3rd party software, Visual Fusion(http://www.idvsolutions.com/products_overview.aspx). While working through the tutorial I ran into a bit of an issue. All I really have...

Can't display Sharepoint List view webpart

I have a feature that automatically creates some web part pages. I want to display a list in my web part page but I can't get the list to show up. Here is my code in my element.xml file: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt; <Module Path="PageTemplates" Url="" > <File Url="Tab3.aspx" Name="Tab3.aspx" Ty...

ajax post to SharePoint web services interrupted by ntlm challenges

I've got a web part that uses javascript heavily in the implementation of a UI. It also makes use of asynchronous XmlHttpRequest requests to some of the SharePoint web services (I'm using SPServices, btw). For some requests, the user is confronted with NTLM authentication challenges, and after entering credentials, the request complete...

Use PowerShell to Compare SharePoint User Meta Data in User Profile and User Information List

Hi, I came across a request on LinkedIn for a PowerShell script that was required to: Retrieve all users from the given SharePoint site-collection For each user, the script must retrieve the properties are common between "User Profile" and "User Information List" If any of the common fields between the two are different, the user name...

How do I pass values from one SharePoint page to another?

Here's my specific predicament: I have a custom List Display Form that I am editing in SharePoint designer. It has the standard field editing form, and a Web part zone with a custom list Web part in it. When a user comes to this page, they're arriving here from clicking on an existing item in a list, we'll call it the "Site List." Each ...

Sharepoint web part property Editor problem

Hi all I create a custom sharepoint web part with a custom Property Editor. There are one Listbox and one button. When I click the Button, it would add a new item to the listbox. But, when I click the Apply button, the number of the listbox item would be twice. Does anyone meet this problem before? Thanks ...

cloning or copying list items in sharepoint 2007 moss

i have been asked to develop a feature of cloning list items in sharepoint. do you think it means the same as copying the list item to another list ? i found a couple of places saying that this can be very tricky. and take care of versioning issues etc. has someone already implemented this because i am not sure which method to follow...

Developing sharepoint solution in visual studio 2008

I want to develop sharepoint solution in visual studio 2008..i have installed visual studio 2008 extensions for sharepoint from microsoft site. I am in search of free videos or tutorials that explains me step by step development of sharepoint solution using visual studio 2008 (using installed sharepoint templates) Any good links? ...

Merging Sharepoint WSP solution files

I have multiple projects/wsp solutions for my different Sharepoint webparts and event receivers. This is fine for development, however I would like to merge the resulting .wsp files into a single one for production deployment. Is there a way to do so? I am using vsewss 1.2 only. ...