sharepoint

My existing webparts won't work in SharePoint

I have a standard ASP.NET 2.0 website. It has a webpage page. I have a webpart in my Company.Web.dll that I display on my webpart page on my website.All is good!!! I would like to use this same webpart in SharePoint 2007. I have a "site definition" project in VS2008 using Extensions for SharePoint 1.2. I have tried various ways to add...

What about task lists and other web parts in Sharepoint?

I have the Ajax working on a custom web part written in Visual Studio and it works fine. Question - I created a task list on the site and added it as a web part to the default page. I would like that web part (task list) to also refresh asynchronously. I have opened it in Sharepoint designer, but I really don't know how to apply Ajax to ...

how to get the SPtemplate

hi I am usgign the followign code to get the required SPtemplate.. SPListTemplate temp = RootWeb.ListTemplates["TaskTemplate"]; however this statement throwing an error as value does not fall within the expected range. please help there is a template present named TaskTemplate ...

SharePoint list template migration error

Goal: Move SharePoint list from old site collection to new site collection. Approach: I save the SharePoint list as a template (.stp), Then move .stp file to the new site collection list template gallery Create custom SharePoint list using my newly created template The SharePoint list populates perfectly. Problem: when I try to ed...

Can not find project web item (ERROR)

I am using SmartPart (http://www.codeplex.com/smartpart) to add web parts to SharePoint. When I open the *.ascx file with visual studio it doesn't display the design of the control showing the error however it runs well when it is added to share point. But I need to see the design to be able to add controls through tool box visually not ...

Opening Excel Workbooks with default Credentials on Sharepoint server

I'm looking into extending some code that handles automatic opening and reading of Excel files. Ultimately this process needs to be able to run on a server so there is a strict requirement of no dialogs/user interactions required. Currently this is all working fine for normal files, but now I need to be able to extend this functionality...

Show or hide context menu item based on condition.

Hello. How do I show or hide context menu items based on condition (For example, some item field value "True" or "False")? I`v added some custom actions for now (using features to add them), but would be nice to manipulate visibility of them. I`m using WSS 3.0. Thank you for response. ...

SPFieldType.User on AfterProperties of SPItemEventReceiver return intermittent value

Im having a problem with AfterProperties for SPFieldType.User field which return unexpected result. public class ItemEventReceiver : SPItemEventReceiver { public override void ItemAdded(SPItemEventProperties properties) { SPItemEventDataCollection cListItemAfter = properties.AfterProperties; ... } } the cListItemAf...

Sharepoint + VSTO deployment

I've developed a Word template in VSTO. When published it consits of several files including a Setup.exe, several msi files etc. Due to the fact that my company's security policy won't allow me to store dlls and exes on the server I need an alternative way to provide all the necessary stuff to the end user. I thoght it would be enough...

SharePoint error whan adding user as site owner.

Hi there. I have a MOSS 2007 site which I'm an admin for. In the 'People and Groups' area for a site, I'm trying to add a user as a site owner. On the 'Add User' page, I add the name of the user and click 'OK', after which I get this totally useless error: Exception from HRESULT: 0x80040E37 at Microsoft.SharePoint.Library.SPRequ...

SharePoint 2007 and Detecting .Net 3.5

I have seen in this TechNet article where SharePoint supports .NET 3.5. I've looked to see if SharePoint requires .NET 3.5 and it appears that it only requires .NET 3.0, even with SP1 or SP2. Can anyone confirm that SharePoint only requires .NET 3.0 regardless of what service pack you have? Also, is there a recommended approach for de...

Recommendations for implementing aspects of social networking in SharePoint

We're looking to build a collaborative site for a targeted set of users (~100) based on SharePoint Services and we want to integrate social networking features such as tagging, activity streams and user profiles to encourage them to participate. This is a proof of concept and if it proves to be popular then we might consider using the t...

SharePoint Workflows - Reassign Approver when out of office possible?

WSS 3.0 and MOSS 2007 with December cummulative updates installed. How to reassign an approver to a workflow when the user currently assigned is out of the office and unable to respond? Is this possible with SharePoint out of the box (no custom code required)? ...

Can SharePoint's Select People and Groups dialog box's Title and Department fields be customized with a custom membership provider?

I have created a custom membership provider for a SharePoint application but would like to populate the Title and Department columns for the MembershipUsers that are displayed with data from my user repository. Is this possible? How can it be done? I don't see anything in the System.Web.Security.MembershipUser class that could store t...

sharepoint override form submission

Is it possible to override a NewForm.aspx form submission in a sharepoint list? Without making changes to the NewForm.aspx page itself? I would like something like the event handlers, where i can capture when an item is being added (ItemAdding) and perform some logic and set the properties.cancel = true, and .errormessage = "message" to...

SharePoint doesn't really provide a mechanism for moving content between libraries / sites.

I want to move a page between sites from a site collection. I am getting result as :- Operation Failed. Access Denied. Not enough permission. When I login as Site administrator, I can move page between sites. The user with contribute permission cannot move pages between sites. Please help me for this issue... ...

Localization based on User Profile

Hello All, 1) I have a requirement where in I need to change the Language of the site depending on the User who has logged in. a) How to achieve this? Is it possible to do without Variations? I don't want to change the URL! b) To get the language of the user should I create a custom field in the Active Directory / Can make use of the ...

Cache-Control/max-age always set to 0 for Anonymous users

I have blobcaching enabled on a publishing site. For authenticated users the max-age property in the Cache-Control HTTP header is set properly according the setting in the blobCache element in web.config, for anonymous users it is set to 0. This causes a lot of 304 requests by the browser trying to see if an image has changed and affec...

Sharepoint and encryption

I'm currently setting up WSS 3.0 at my work, and I'm in the finance section of it. My question is, is there a possibility to encrypt and decrypt lists? And I mean entire lists, because the document libraries will have different types of files in it, from Word to Invoices in InfoPath. I know there is a solution in CodePlex called Crypto...

Sharepoint classroom training

I am USA based sharepoint developer. I have 2 years of sharepoint development experiance. I am looking for Intermediate level training. My topics of interest are BDC, workflow etc. Anyone has suggestion for Sharepoint training? ...