sharepoint2007

Shortening jQuery Function

I've written the following functions to remove non-breaking spaces from the html code in a SharePoint site (SharePoint designer litters whatever code you write with non-breaking spaces whenever you open the masterpage or page layouts! You end up spending all your time going back and deleting them). In any case, it seems overly long, I'm...

How to use the GetChanges method of SiteData WebService

Hi there, Can anyone elaborate on the parameter values to be supplied for GetChanges method of SiteData Web Service? Basically I am not able to understand what value should we supply for startChangeID and EndChangeID and from where can we get these values? Any help on this would be greatly appreciated. Thanks. ...

Proper way to hide place holders in a SharePoint 2007 Master Page?

I am working on a specialized instance of MOSS for a client where What I am wanting to do is hide elements on the master page. In particular, I want to hide the main top navigation bar, the search functionality and the label that shows up in the upper-left-hand corner that tells you the name of the site you are on. So I made a copy of th...

MOSS 2007 Anonymous Posting

Hello, I want to create a method for users to post comments (to a blog?) in Sharepoint anonymously. This would preferably be within an existing - authenticated - site. Any thoughts? ...

Download specific version of a file from SharePoint using web services

Can someone provide a sample for downloading a specific version of a file from SharePoint using web services? Normally I would get the file with the Copy Web Service (.../_vti_bin/copy.asmx). But I don't really know how to specify a version. Regards Anton Kalcik ...

Debug InfoPath Form

Hello All, I want to debug a browser enabled InfoPath form with code. MSDN says here how to do But I see that I don't have the option "Open Visual Studio and click Attach to Process on the Tools menu." Can any one please help. ...

Dataview web part fails after minor changes.

We're working with a sharepoint 2007 site that has a number of dataview webparts showing different views of a document repositry. Each time we make even the most minor change (such as changing the chrome settings or adding a class) to the XSLT or webpart settings the DV webpart refuses to render. Our XSL is vaild, as is the page the GU...

Form Library in publishing Portal

Hello All, I want to create a Forms Library on a Publishing Portal. Should I edit the Site Definition / is there any other way to get a Forms Library? Please help. ...

SharePoint Lists as DataSources - How to Manage

Hello All, Its a kind of newbie question: We have a web part with user controls and a SP list as data source. For different kind of sites say team sites, publishing portals etc the path for the respective list would be different. eg: Team Site it would be http://<Server>/Lists/<List Name> and for Publishing portal with Locali...

SSIS - Sharepoint list data transfer

Is there a limit on the number of rows that can be transferred from a Oracle database(OLEDB source) to a sharepoint list using SSIS? I am getting exception after transferring 19000 records ...

Accessing HTML source on web part zone Sharepoint

I've to retrieve all the html that will be rendered by whatever web part zone. The scope is looking for some words in the web part zone, match them with those contained in a repository and replace with different html. ...

Need a separate role for adding Users in MOSS 2007

I want to have user rights split into two. Some of the policies at the client's side mention that we should have a seperate user who has only the rights to add users and nothing else, and the Site Administrator should not be able to add users. As of now, the Site Admin is used to Add users and to manage other configuration. Can we remov...

SharePoint activate feature file not found error

I am trying to activate a feature on our production MOSS server, all I get is a file not found exception. Feature works great in test environment. What can it be? ...

Attaching Visual Studio Debugger to Sharepoint 2007 worker process crashes the process

When attempting to attach to the iis worker process associated with sharepoint, the worker process terminates with the following error: I have the correct assemblies deployed because adding the following line in my code causes the same effect when the debugger is not attached, similarly crashing the IIS worker process for Sharepoint: ...

Open a web folder (Sharepoint 2007)through openFileDialog

I have the following snippet of code written in C#: openFileDialog1.InitialDirectory = "\\\\fwm-storage\\users\\" + curUser + "\\My Documents\\My Pictures"; openFileDialog1.Filter = "All Files (*.*)|*.*|Images (*.jpg)|*.jpg"; openFileDialog1.FilterIndex = 2; // blah, blah, blah Which works great and all, but, I want to be able to add...

Adding User to Active Directory

To get a new user in SharePoint with Windows Authentication, do you log on to the server and add the user manually / you develop some web part in SharePoint to Administer the AD? ...

Changing the default page based on security group in SharePoint

We have a SharePoint site collection. In this site collection we have a home site and 6 other sites. Each of these sites belongs to a department in our company. Right now if you are a member of department A security group you would see homepage and your department site/tab when you navigate to the site. What they want me to do is to redi...

Is it possible to deploy Sharepoint.dll to a server not running MOSS 2007

I have a web service app - that I need to connect to a MOSS server. for example: using (SPSite site = new SPSite(this.SiteAddress )) { using (SPWeb web = site.OpenWeb()) MOSS is not running on the same server as this web service app. Should this be a problem trying to use the object model. Or do I really...

SharePoint via web services: how to pass a date?

Trying to pass a date to an add item with the Lists web service using: string item = "<Method ID=\"1\" Cmd=\"New\">" + @"<Field Name=""AcceptanceTime"">" + DateTime.Now + "</Field>" But it's generating an exception: 0x8102001c Invalid date/time value A date/time field contains invalid data. Please check the value ...

SharePoint via web services: how to add attachments?

Adding a list item via the SharePoint web service model, any idea how to add an attachment to the list item? ...