sharepoint2007

How to apply custom ItemStyle.xsl to CQWP

Hello all I got a question about applying custom itemstyle.xsl to CQWP. I extracted existing CQWP, renamed it, and uploaded to webpart gallery on a site collection. The modified CQWP web part worked with no problem at all under default itemstyle.xsl After that, i copied itemstyle.xsl, renamed it to customitemstyle.xsl, and uploaded ...

Modifying rednered HTML in Sharepoint Server 2007

I'm receiving HTML and CSS mockups from a designer that's not in my city so the level a communication is not deep. He's giving me HTML and CSS that adheres to the HTML that's being rendered by Interwoven CMS. The problem is the HTML/CSS don't adhere to what my CMS (Sharepoint Server 2007) is rendering out. For example, when displaying a...

Add Site and Page Description to SharePoint Search Index

Hi, As part of a SharePoint solution, the functionality for users to create new web sites and publishing pages (programmatically) via a button click has been added. I need to ensure that the Description field for the newly created sites and pages is indexed by SharePoint Search. What is the best way to do this? Please note, I am NOT in...

how to set current user name in SharePoint?

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5. I am wondering whether SharePoint has any means to set current user to be some specific user? For example, I want to set the user to be administrator automatically when people connects from a...

how to add C# code in default.aspx in SharePoint

Hello everyone, I am using SharePiont Server 2007 Enterprise with Windows Server 2008 Enterprise. I am developing using VSTS 2008 + C# + .Net 3.5. I want to add some C# code to default.aspx (more details, adding some logics to Page_Load method of default.aspx) and its code behind file. But I did not find default.aspx and its code behind...

Prevent Access to Custom Web Application Pages by Non-Admin Users in SharePoint

Hi, I have a custom web application that integrates with a SharePoint (MOSS 2007) solution. I would like to add role-based access to pages in this custom web application, with only users in a specified SharePoint group or with a specific role being able to access them. Other users being sent to the default OOTB web page, giving the mes...

Changing My Site and My Profile tab text

How do I go about changing the My Site and My Profile text on everyone's My Site within SharePoint 2007? I can't seem to find anywhere where these are set in any of the master pages. ...

SharePoint running a method when item added to a library

I have a library and I want to run some code when an item is added to populate some additonal columns. Is there any way I can have this code run automcailly. Where would I go about adding it. Also would it be possible to have a screen to be able to edit the options of the code. Just some pointing in the right dirrection would be great. ...

Trouble with SPFieldLinkCollection.Reorder: Isn't working as documented.

I am working with a custom list I've built in SharePoint. I have a feature which has an event handler that kicks off when the feature is activated. That event handler calls (I can debug and watch it execute) the following function: I'm intending that the function behaves as described here. private void OrderFields(SPWeb web) { // ...

Cross Domain error for Sliverlight component in SharePoint 2007 Online

I have completed 'Integrating Microsoft Silverlight with a SharePoint Online Page' from the SharePoint developers guide and it gets a cross-domain error. I understand CrossDomain issues with Silverlight but I have two concerns: the guide makes no mention of requiring a crossdomain.xml or clientaccesspolicy.xml file which makes me think ...

Hosting Silverlight Out of Browser Application in Sharepoint 2007

I am trying to host a Silverlight 3 Out of Browser Application in Sharepoint 2007. My application gets displayed fine; but when I install it as out of browser; and try to run it from desktop; only blank screen is displayed and nothing happens onwards. The XAP file is kept in _layout/MyFolder/MyApp.xap (Under 12 Hive). Am I missing anyth...

Add a document and metadata to a document library without creating 2 versions.

I have a requirement to programmatically add a file along with metadata to a document library and in an event handler. I am using the following code in the asynchronous “ItemAdded” and “ItemUpdated” events: SPFile destFile = web.Files.Add(newUrl, newFile, true); SPListItem destItem; if (destFile.Item != null) { destItem = destFile.It...

How to add the UserId parameter to the query string of a XmlUrlDataSource in SharePoint?

I have an aspx that returns XML data using the query string parameter UserId. This UserId should be the SharePoint current User. I create the datasource and dragged to the page, but i don't know how to add the parameter to the datasource, so that it sends the current User Id. I tried to add the parameter in the datasource parameters gri...

Pull content render in sharepoint

Hi, I have a requirement where i need to pull information from some other non sharepoint site into sharepoint page layout.I have that site information in XML also.Does anyone is having idea how to acheive this in sharepoint . ...

how to temporarily disable email notification while updating items in code?

Hi all, I am having trouble with temporarily disable email notification while updating items so the system will not send out any unnecessary email. What I am trying to accomplish is that disable alert, updates item, then enable alert back. SPList tasklist = Web.Lists["Tasks"]; tasklist.EnableAssignToEmail = false; //This property...

403 error after adding javascript to masterpage for sharepoint.

I am attempting to add highslide-with-html.js from http://highslide.com/ to my masterpage. I am receiving a 403 forbidden error when I use the provided masterpage. I have placed it in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033. Test javascript files such as pirate.js which consists sol...

How to access start addresses of a Content Source programatically ?

How can we get a list of start addresses added in a Sharepoint content source programatically ? The code which need to achieve this will be running on different server than where sharepoint is installed so i am looking for a solution where we can query sharepoint database to get this list. ...

SharePoint - moving from Enterprise to Standard

We've been happily running on MOSS 2007 Enterprise for quite a while. However, we're faced with the need to move our 2007 instance to a different farm running standard. What should I be looking for in our existing implementation that would prevent us from accomplishing this feat? I realize there are charts offering comparisons between...

Locking / Unlocking a Site in Sharepoint

Hi, I am working on a program that retrieves information from Sharepoint. Now I need to check the behavior of it with some locks. My question is "How can I lock a single site within a site collection in sharepoint?" (Not programatically) I got 2 clues, Use of stsadmin command line utility Use of Central Administration > Application ...

recommended book for SharePoint 2007 work flow development (a.k.a) customization using Visual Studio 2008 ?

Hi is there any full book or part of books which talks about the improved and simplified ways of creating / developing/customizing SharePoint 2007 Workflow using Visual Studio 2008 (preferably Team edition) ...