sharepoint

Sharepoint GetListItems function returns non-matching items

I have the following code, which is a modified version from MSDN's website, to test getting all list items where the field "UserID" matches the value specified: Dim xmlDoc = New System.Xml.XmlDocument() Dim ndQuery As XmlNode = xmlDoc.CreateNode(XmlNodeType.Element, "Query", "") Dim ndViewFields As XmlNode = xmlDoc.Crea...

SharePoint 2007 to 2010 upgrade error: Duplicate content type name was found

I'm in the process of doing an upgrade from SharePoint 2007 to 2010 using the database attach method. During the database upgrade I'm getting the following error: Feature upgrade incomplete for Feature 'PublishingSite' (Id: 'f6924d36-2fa8-4f0b-b16d-06b7250180fa') in Site 'http://intranet'. Exception: A duplicate content type name "Resou...

Porting an aspx website to sharepoint ?

We have a requirement from a client for porting an ASPX website to sharepoint : Though the site is being served in ASPX there are no form submissions so effectively, they are just static pages without any server side processing required. However, there is a common header and footer being used. Here are some of the features being used ...

shamsi Calendar in Sharepoint

Hi I want create shamsi calendar and add calendar type in sharepoint. Please tell me how can I do it? thank you ...

Choose dynamically at runtime which version of a .dll to use.

I'm working on a utility for SharePoint. It's an app that works for both SharePoint 2007 and 2010. When I have a reference to the 12.0.0.0 version of the SharePoint.dll, the app works for SharePoint 2007, but not for 2010. If I reference version 14.0.0.0 of the dll, then the app works great for 2010, but not for 2007. I can easily te...

WSS_Content -- what localization?

Hello all, Is there a way to get current SharePoint localization (or culture like "en-US"), querying DB WSS_Content? Regards, ...

removing Title area section SharePoint

I want to remove the title area section which is above view all site content not the breadcrumb and move my quick launch next to breadcrumb...having <td class="ms-titlearealeft" id="TitleAreaImageCell" valign="top" nowrap style="width: 1px; border-style: none; height: 1px;" height="1px"><div style="height:100%" class="ms-titleareafram...

Add New Calendar Type To Sharepoint such as Persian Calndar

can anyone tell me how i can add new calendar type such as Persian Calendar in sharepoint ...

SQL0104N An unexpected token "?" was found with DB2 and SharePoint BCS

We are using SharePoint BCS to connect to our DB2 Database, we have our method configured as the following <Property Name="RdbCommandText" Type="System.String">select "EMPNO","FIRSTNME","MIDINIT","LASTNAME" from ADMINISTRATOR."EMPLOYEE" order by "FIRSTNME" fetch first ? rows only</Property> we also have a limit Filter which provides t...

SharePoint Folder QueryOptions Does Not Work With JQuery

The option seems to be ignored when using JQuery. This will only bring back the root folder. Here is my code: <script type="text/javascript"> $(document).ready(function() { var serviceName = "http://win2k3r2ee:90/_vti_bin/lists.asmx"; var postData = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap...

sharepoint: obtain domain Ip related to current user

hello how i can obtain domain ip that user is joint to that domain in sharepoint website? ...

SPSite From Two Different Sites

I'm having an issue with accessing objects within two different instances of the SPSite object if the URL to the site collection is located within two different sites (e.g., http://mysite/Docs1/ and http://mysite/subsite/Docs2/). Consider the following code: public static void MoveDocument(Uri sourceUrl, Uri destinationUrl) { string...

Sharepoint retrieving username without domain or programmtically removing domain

Im returning the username from sharepoint site as a string. This is done successfully with the below code but I also get the domain with it. How can I only return the username and not the domain either through sharepoint or programmatically removing it? domain/username private string CurrentUserName() { string userName = "N...

List documents in Sharepoint Documents Management via SOAP

Hi there we're working on simple integration of PHP basad application with Sharepoint Document Management system. The idea is to be able to: I. create a subfolder in Sharepoint DWS from PHP - we have this point working. II. list documents of a particular subfolder of DWS (and have a direct links to these doc on sharepoint) We have de...

Sharepoint workflow - help please!

Dear all, I am new to sharepoint and workflows. I need some help. I am trying to do make a condition (using sharpeoint designer) which says "if there is any engineer whose status = Available, assign the task to that particular engineer. Also, change the engineer status to unavailable after assigning the task. " please help what steps...

Sharepoint: how long would it take to add document management to an ASP.NET site?

Hi I am an experienced ASP.NET C# developer who is investigating using Sharepoint for document management for one of my clients. They want an intranet site with blogs and other stuff in addition but this will need to adhere to their brand guidelines. Apart from the faff of setting up a working development environment to what extent do ...

SharePoint 2010/2007 - Possible to change site definition for existing site?

We have started our effort to migrate to 2010 from 2007 SharePoint. In 2007 we used a site definition. After the migration, it is obvious we have work to do on our 2007 site definition. 1.) What is the best path for us? 2.) Can we create a new Site Definition in 2010 and change the site definition that existing sites used to the new o...

Sharepoint File Upload

I have a Silverlight Application, that uploads file(s) to a Sharepoint Site. I got it working for a Sharepoint site in my box and in a Sharepoint site in someone else's box, where I login using my Windows account to that site. But I am not able to upload files into Sharepoint sites which are in a different domain / use a different login...

How to define a Content Control through C# code

I am writing a webpart and was trying to update the browser title... so, I went into mywebpart.ascx added the following: <asp:Content ID="contentPageTitle" ContentPlaceholderID="PlaceHolderPageTitle" runat="server"> <%= SPContext.Current.Site.OpenWeb().Title %> </asp:Content> I then got this error: Content controls have to be top-...

How to grant limited "manage permissions" permission in Sharepoint?

I have a Sharepoint library that is too large for a central administrator to manage permissions on all items, so I want to designate a few other people who are able to allow or disallow read/write access for arbitrary items in the library to users or groups. However, I don't want to give those few people total "manage permissions" abili...