sharepoint

Anonymous SharePoint Users and people search core results web part

Hi Can anyone tell me how to allow anonymous SharePoint MOSS users to view people search core results web parts? When they try to access pages containing this web part, they are prompted to login. All the best ...

How to create a Global connectionstring to SQL Server Database for my SharePoint site

This is my connection string inside my web.config of my SharePoint site. Its sitting just below the closing SharePoint tag. <connectionStrings> <add name="SAMRASConnectionString" connectionString="Data Source=JOHANDEVVM; Initial Catalog=samrasDB; User ID=Johan; Password=password; Trusted_Connection=True" providerName...

Sharepoint MOSS customised v's uncustomised

Hi If Microsoft built MOSS so that all data is written to the SQL Server database, why do all best practices for development suggest to keep files etc outside of the database, i.e. on the filesystem? All the best ...

How to get in CAML (Sharepoint 2007) the same results as SPNavigation.QuickLaunch?

I have a website in Sharepoint. To get a list of sites ordered by the exploration, that is to say, ordered by the user in the sharepoint administration, i would write the following code: SPWeb web = CurrentSite.OpenWeb(currentSite); SPNavigation nav = web.Navigation; SPNavigationNodeCollection nodeColl = nav.QuickLaunch; That is o...

Add Custom Control in Asp.net

I am creating a new Panel.. public class LicensingPanel : Panel { private LinkButton licenseButton; ... } I am then in the code adding my controls to the Controls property, one of which is a LinkButton. What I want to be able to do on my Page code behind is the following.. protected override void CreateChildControls() { ...

How to fire code upon creation of a SharePoint list?

I'm aware of the event receivers on a list for items added etc. However, I have not found a way to fire code upon the creation of a list. What I'm trying to do is associate a workflow with a list when the list is created (by the user through the UI). Anyone any ideas? thanks. ...

Sharepoint 2007 template to site definition conversion

Is there a way to (semi) automatically convert a sharepoint 2007 site template to a site definition? This seems like it could be quicker than building a site definition from scratch, yet provide the benefits of the site definition. ...

How to delete the cache of SPNavigationNodes in Sharepoint 2007?

I have a website in Sharepoint. As you know,in settings users can order the sites and pages as they want in exploration, and then you can get these items with this order with: SPWeb web = CurrentSite.OpenWeb(currentSite); SPNavigation nav = web.Navigation; SPNavigationNodeCollection nodeColl = nav.QuickLaunch; The problem I am havi...

.NET One Hop Rule and SharePoint Webparts

Hi I have a SharePoint webpart which is compiled as a DLL and placed in the BIN folder of my SP site. My webpart works on my local machine, but when I put it on production it fails with a (401) Unauthorized. After doing some research I came acrooss what is known as the "One hop rule". Meaning I have to either pass in the credential...

What knowledge should a software architect have about SharePoint?

At our company we are currenty trying to define the basic things our software architects have to know about SharePoint for them to architect and/or lead a SharePoint implementation project. Many architects in our company have a .NET developer background and know a lot about .NET development and the various framework components and toolin...

How to impersonate a user when calling a .NET web service from a SharePoint webpart?

What is the best practice for impersonating the current SharePoint user when accessing a web service that uses NTLM authentication? The webpart has the user name but not password, and apparently, passing the network credential from the webpart does not work. The remote web service uses NTLM to authorize the user. ...

Programatically Publishing InfoPath Form As Site ContentType (Not Central Admin)

Does anyone have any idea how to deploy an InfoPath Form (2007) as a Site ContentType programatically (script or object model)? I do not want the form published to Central Admin and FormServerTemplates, but rather a Forms Library created by a Web scoped feature. The intention is to be able to publish the form via script or code in orde...

Share a .NET Membership Database with SharePoint?

We have an FBA SharePoint implementation using a .NET Membership database. We would like to use this same database and collection of users for a new application. Has anyone tried this? I know in theory that it should work, but SharePoint can be finicky. ...

Why would a web part fail on constructor the first time it's being added to a page?

Hello, This question is a bit specific (MOSS2007) and I don't high hopes for getting an answer, but maybe luck will smile upon me. I have a web part that works except the very first time it's being added to a page. It throws an exception inside a constructor when I'm trying to open a connection to a SQL server. The demand for the SqlCl...

Windows Workflow Delay Activity serialization errors

I have a state machine workflow hosted in SharePoint with a delay activity in one state. When the timer fires the delay activity, I get a serialization error: "Engine RunWorkflow: System.Runtime.Serialization.SerializationException: Cannot get the member 'SendEmail_MethodInvoking'". The method this error references is not in the same s...

Using linq with Sharepoint and disposing of objects

How do i dispose reference to the subWeb in the following query? using (SPSite spSite = Utility.GetElevatedSite(_rootUrl)) { from SPWeb web in spSite.AllWebs where web.ServerRelativeUrl.ToLower() == path from SPWeb subWeb in web.Webs select subWeb } Do i even need to worry about disposing th...

SharePoint ListItem Error: "Value does not fall within the expected range"

Hi I am developing using the SharePoint namespace and I ran into the following error when I try to retrieve a Title field from the list items. "Value does not fall within the expected range" I know however that the field exists because I printed out all the fields. string value = (string)listItem[listItem.Fields["Title"].Id]; Console....

Creating a custom field that requires unique values

I am implementing a custom list definition that contains several columns. A requirement to one of the columns is, that it can only contain unique values. If a user enters a value that is already present in another list item, a validation error must be shown. Are there any options for doing this OOTB, perhaps in the list definition or in...

Setting document library permissions in WSS 2.0

Hi, I am using WSS2.0. Am trying to set some permissions to a document library but not getting the desired behavior. I have created a sharepoint user and assigned it to 'Reader' group. I just want this user to view document library content but not make any changes like check out or upload new document or delete etc. Hence I assign the R...

Autofilter Combo Box for ASP.Net form

I need a control similar to the SharePoint:LookupField, but bindable to any data source. (i.e. dropdown box that allows typing and filters the items based on what is typed so far) Preferably, same look and feel as the LookupField. Any recommendations? Thanks. ...