sharepoint

SharePoint Navigation Custom Link Security Trimming

Hi, We've got our navigation setup so that subsites show in the global navigation but we have a requirement to also put custom links to external sites which is straight forward. The tricky part is that some of the custom links need security trimming which you don't get when you add your own links to the navigation. Just wondering if a...

Sharepoint alerts not working when multiple people are in an item

We use Sharepoint Services 3.0 as a project tracking tool. We have a list set up that contains your basic information (description, etc.) plus we have a "assigned person" column that is of type Person or Group that we use to associate list items with individuals. This column supports multiple selections. We would like to set up alerts...

How to display (converted) Word document content in Sharepoint

There is Page Viewer Web Part which can display HTML page. Is there another webpart that can display the content of the Word document or alternatively a way to convert a Document from inside OOTB Sharepoint? ...

Sharepoint and its template/master pages

I'm trying to learn how to customize a sharepoint site. I've seen a lot of examples and they all seem to have one thing in common, the navigation are all the same. Ie the left nav with the different pages and docs. top nav with mostly links to sub-sites or other sites. Does anyone know of a good tutorial or example i can grab that has ...

How to programmatically migrate Sharepoint Team Discussion Item

Hi all: I was wondering how can I programmatically copy all the discussion items from one Sharepoint team discussion to another? I have tried retrieving the team discussion items from an existing site as SPListItem. Although I could find the Team Discussion list, but I could not red the retrieved items by assigning them as SPListItems...

WPF and SharePoint 2010

Dear all, We are in the early phases for a big project that will be using SharePoint 2010 (not using webpart, but a whole independent application that will run inside Sharepoint).Out project is Web-enabled (we don;t want a Windows application). The options we have to code our project with are: -Asp.Net Application -WPF 4 -SilverLight ...

Can I set the default value of a custom list column to be a new Guid?

I tried setting the defaultvalue property of the field to Guid.NewGuid() but every item created has the same guid so I guess the Guid.NewGuid() is being stored as the default rather than being run each time. Is the only way to achieve this to add an event handler to the list for OnAdded? ...

extracting data from a SpGridView selected row

Using SPGridView, I want to fill textboxes with the SPGridview Selected Row Data on a button click event. txtCode= SPGridView.SelectedRow.Cell[1].Text; On debugging, it shows Cell[1] is empty but it is showing data in the Grid. How can this be achieved? ...

How do I stall until a SharePoint List Item is Deleted with SPLongOperation?

I have a workflow, which creates a task and deletes it after the task is edited and its useful information acquired. I created a custom edit form for the task, so I have an SPLongOperation that I can use to stall the page. This is necessary, because if I don't stall the page in some fashion, the person will see the task in the task list ...

Is there a way to use sharepoint as the back-end versioning and storage for my custom document management website?

I want to build a custom document management web application that ties in with sharepoint for the actual document versioning and storage. I'm hoping for something like a sharepoint widget that I can plug into my web application that would allow me to tie in with sharepoint and download documents, make edits to them, and upload them back...

How to read a (SharePoint) custom web part property before the page loads?

I have a custom web part in SharePoint that has one property. Here is it: // Specify report path private string _report_path = string.Empty; [WebBrowsable(true), Personalizable(true), WebDisplayName("Enter Path"), WebDescription("Embeds an OBIEE Report in the portal"), SPWebCategoryName("Report")] public...

why sitecolumn title is blank after feature activation....

After installing using stsadmin, and activating using site UI "Site Collection Feature" these columns shows up but no title is showing for them. So no link is attached. It looks like this. Site Column Type Source Car Custom Columns Single line of text SiteCol1 Single line of text SiteCol1 Single line of text SiteCol1 ...

How to debug web.config for a SharePoint 2010 application to make sure your c# code can access modified parameters in web.config?

I am trying to access some key=>values in appSettings in my web.config but keep getting an error: Object reference not set to an instance of an object. I would assume this means that it cannot find the values in SharePoints web.config file. I have added this: <appSettings> <add key="SAWServer" value="http:/...

How to convert SPFieldNumber into an int

Sorry if the question sounds stupid... but how do I convert an SPFieldNumber into an int in C#? I tried Convert.ToInt32, but doesnt seem to be working. Thanks. ...

Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) in SharePoint Part 2

Hi all: Following this post which I posted some time ago, I now get the same error every time I try to rewire 2 web's URLs. Basically, this is the code. It runs in a LongRunningOperationJob: SPWeb existingWeb = null; using (existingWeb = site.OpenWeb(wedId)) { SPWeb destinationWeb = createNewSite(existingWeb); existingWeb.All...

How to check the file is in check in mode or not in c#

Hi, I am getting the document of particular document library of a sharepoint site in C#. I want to check whether the file in checkin mode or in checkout mode . how can i do that. can any one help me? ...

sharepoint full text query with attributes missing isn't returning the results I expected

If I am doing a search in sharepoint, some of the results I'm expecting are not being returned. I believe its because in active directory these entries may not have all the fields. So a name that doesn't have the givenName attribute set in active directory is not being returned from this query. Is there a way I can get this to work li...

Don't see Office 2007 document type in Sharepoint 2007

Hello, I just installed MOSS 2007 SP2 and configured my site. When I go to create a new document library, I don't see document types of Office 2007 documents? Would really appreciate your help on this :) ...

Accessing Sharepoint 2007 documents outside network

Hello, I just installed MOSS 2007 and configure it on a machine. The machine is not in a domain. When I try to create a new document in my document library (Server is on a remote location and my laptop is not a part of the domain), MS Word 2007 opens, asks me for login credentials 3 times and then disappears leaving me with a new blank...

Exception when programmatically copying content type

Hi all: I'm getting exceptions when copying content type from one web to another: foreach (SPContentType destinationWebCt in destinationWeb.ContentTypes) { destinationWeb.ContentTypes.Add(existingWebCt); destinationWeb.Update(); } existingWebCt is the content type from another web e.g. /Site/Web. destinationWeb is the we...