sharepoint

Determine the SharePoint Sites and Webs That A Specified User Can Access Programmatically?

Hi, I need to determine the sites and webs that a specified user can access in a SharePoint web application via the SharePoint API. Note the specified user is different from the current user that is calling the code. I initially was thinking of making use of the PortalSiteMapProvider, but it does not offer an option to change the user...

Why can't I override the default master page content in a SharePoint publishing page?

So I've setup a site collection using the Publishing Portal template and stubbed out a prototype site structure including three tiers. At the second tier I've created a Publishing site and developed a custom master page for the site and its third tier children. The problem is that the banner graphic on a few pages should be modified to...

update DateTime field with webservice UpdateListItems

is it possible to set a DateTime filed to be null/empty when calling UpdateListItems? I can set the field to a date value, but not set it to be empty. ...

SharePoint get the full URL of the current page in code behind

In SharePoint how do you get the url of the page you are on from the code behind? e.g. with the blah.aspx page included... SPContext.Current.Web.Url gives http://vm/en/ I need it with http://vm/en/Pages/blah.aspx ...

SharePoint Content Query Web Part - Ignoring Current Level

Consider this SharePoint site hierarchy: - Site Collection - Site1 - Subsite1 - AnotherSubsite1 - Page1 - Page2 - AnotherSubsite2 - Subsite2 - Page3 - Page4 - Site2 You can assume that every Site in the above hierarchy has a default page. If I place a CQWP on ...

Cascaded ListBoxes using SPFieldMultiChoice - issue defaults to default Content type

I wound up modifying the source from a publically posted POC: http://datacogs.com/datablogs/archive/2007/08/26/641.aspx, which is a custom field definition for cascading drop downs. The modifications were to allow parent-child list boxes where a user can multiselect for filtering and selecting the values to be written back to a SharePoin...

How to set the version comment on a list item when you update it

Each version can be given a comment when it is edited in the browser and this can be seen when viewing an items versions in in the browser. When I programmatically change a fields value on an SPListItem I would like to set a comment for this change. Ideally the comment string would be passed as a parameter to SPListItem.Update but it do...

Javascript Regex Browser Inconsistancy?

I have a regex that I am using in an asp.net RegularExpressionValidator to check a TextField. ^(?=.*[a-z])(?=.*\d)(?=.*[A-Z]).{8,}$ The example string I have stumbled on is 'RedCoal1' Firefox = Matched IE8 = Matched Chrome = Matched IE7 = DOES NOT MATCH WHY!!!! ...

Javascript Error while opening Infopath templates from within .Net webbrowser control on 64-bit Vista machines.

We have some browser enabled Infopath 2007 templates hosted on Windows Sharepoint server (Windows 2003 machines). We use a couple of 'Rich Textboxes' in these templates and these templates are made available to the end user via .Net windows application that used the WebBrowser control. The application runs just fine, but only on 64-bit...

jquery cannot use ajax response as context in IE

Hi there, thank you for taking the time to read my question. I have significantly rephrased my question after some new findings. My problem is that in my ajax callback, when I set the context of my query to be the returned html of my ajax call, it cannot find any elements. Some findings: The problem never occurs in Firefox The pro...

User powershell to get a list of all folders in /downloads/pivots

So I have a boat load of pivot tables that I upload everyday to folders like: Pivot0001 Pivot0002 Pivot0003 and so on. I also have user groups called Pivot0001 and so on with users that need to access that folder in it. What I now need to do is set the permissions on each folder (I have 400 or so of them). I know I need to do a loop ...

What is the profile of a SharePoint developer

Hello, I have a development team specialized in ASP.NET. So the solutions we provide are web based, running on IIS and using MS SQL server. Everything within the intranet of the company. The team has this expertise, and they are excellent in C#, and .Net in general. The company is deploying SharePoint MOSS 2007. This deployment is part...

Unit Testing and SharePoint Development

Hi, I am interested in writing unit tests for the SharePoint development work I am doing. Can anyone suggest practical approachs to implementing unit tests in MOSS? Note that any third party tools have to be free (but not necessarily open-source); the company I work for will not pay for additional tooling. In particular, any alternati...

SharePoint document library versioning and require check out settings using web services

Hello. I need the information about the SharePoint document library. Namely, I need the info whether the versioning is turned on or off and if the "require check out" option is selected. I have to use SharePoint web services. I have looked up in Versions.asmx, Lists.asmx and SiteData.asmx, but found no method or properties that suit my...

developing on moss for mobile devices

What is the best approach to take when considering a mobile application based on a sharepoint moss platform. I know that moss serves mobile pages but is there any guidance on building and extending this for this platform? I would be interested to hear if anyone has done any extensive work in this area? ...

Web Application Feature Not Activated By Default

All that I'm trying to do is deploy a simple web application-scoped feature that is activated automatically when you install it. Just to make sure that none of our corporate customizations were doing anything weird I even created a simple test web application feature and built it with WSP builder, but I still get the same results - the f...

The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.

We have a Sharepoint solution that uses AJAX. The button that triggers this is inside an update panel. One of the things that we do is generate a MS Word document, that is then opened on the client so that it can be printed. The code that sends the document to the client looks like this: void OpenFileInWord(byte[] data) { ...

Cross Page Postback in moss

Can I do a cross page postback in an .aspx page hosted in moss? I have set the postbackurl property of a button but when it posts to my page I get the following message from moss: This Page has been modified since you opened it. You must open the page again. ...

ASP.NET vs SharePoint

For a developer who likes working in ASP.NET/Web forms, would anyone recommend going towards a SharePoint shop? Will I be able to keep up with latest in ASP.NET, or is SharePoint a different world? I really like ASP.NET, but have an opportunity with SharePoint development. Is the big change worth it on the tech/skillset end? UPDATE: ...

If Kerberos Authentication fails,will it always fall back to NTLM?

I have gone through many blogs which are telling that if Kerberos fails then it automatically falls back to NTLM.Is it true? ...